Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the profile that's using a ruletype when trying to delete #5307

Open
eleftherias opened this issue Jan 15, 2025 · 0 comments
Open

Show the profile that's using a ruletype when trying to delete #5307

eleftherias opened this issue Jan 15, 2025 · 0 comments

Comments

@eleftherias
Copy link
Contributor

eleftherias commented Jan 15, 2025

When running minder ruletype delete --all, it's possible the ruletypes cannot be deleted because they are referenced by existing profiles.

In that case, we see:

The following rule type(s) are referenced by existing profiles and were not deleted:
repo_workflow_access_level
trivy_action_enabled

We should also show which profiles are referencing those ruletypes, for example:

The following rule type(s) are referenced by existing profiles and were not deleted:
repo_workflow_access_level
trivy_action_enabled

They are referenced by profiles:
custom-profile
dependency-security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant