-
Notifications
You must be signed in to change notification settings - Fork 613
[New Rule] GitHub Actions Workflow Injection Blocked #5433
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
base: main
Are you sure you want to change the base?
Conversation
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
| github.category == "protected_branch" and | ||
| github.reasons.code == "workflow_updates" and | ||
| match(github.reasons.message::STRING, "refusing to allow a GitHub App to create or update workflow") | ||
| | keep * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should keep all the default events for the docs since we are not aggregating anything.
| github.category == "protected_branch" and | ||
| github.reasons.code == "workflow_updates" and | ||
| match(github.reasons.message::STRING, "refusing to allow a GitHub App to create or update workflow") | ||
| | keep * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a note too, we probably need to update #5441 to handle this as well.
Fixes #5431
Pull Request
Issue link(s):
Summary - What I changed
Adds coverage for potential
Github Actions Workflow Injection Blockedevents. Please see the issue for more details.How To Test
Query can be used in TRADE serverless stack.
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist