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

cleanup: remove unnecessary checkups from rule #852

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Sep 5, 2023

The rule previously known as "actions_permissions" was a little complex in
the sense that it checked a couple of attributes from the github repo
configuration.

This renames the rule to something more appropriate and checks for only one relevant
thing. Thus making it more understandable.

This also adds appropriate guidance for folks.

The rule previously known as "actions_permissions" was a little complex in
the sense that it checked a couple of attributes from the github repo
configuration.

This renames the rule to something more appropriate and checks for only one relevant
thing. Thus making it more understandable.

This also adds appropriate guidance for folks.
@@ -40,10 +49,6 @@ def:
type: jq
jq:
# Ingested points to the data retrieved in the `ingest` section
- ingested:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the enabled checking for? Should we split that in a separate rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That check wasn't actually valid as you can't really even set if a repo should have github actions enabled/disabled. You can only do so org-wide. So... it was a mis-documentation from github's side. Given that, no use checking that.

@JAORMX JAORMX merged commit bd92c83 into main Sep 5, 2023
12 checks passed
@JAORMX JAORMX deleted the cleanup-allowed-actions branch September 5, 2023 13:31
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

Successfully merging this pull request may close these issues.

2 participants