-
Notifications
You must be signed in to change notification settings - Fork 614
[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
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.
rules/integrations/github/initial_access_github_actions_workflow_injection_blocked.toml
Show resolved
Hide resolved
Samirbous
left a comment
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.
Nice Addition!
rules/integrations/github/initial_access_github_actions_workflow_injection_blocked.toml
Outdated
Show resolved
Hide resolved
rules/integrations/github/initial_access_github_actions_workflow_injection_blocked.toml
Outdated
Show resolved
Hide resolved
rules/integrations/github/initial_access_github_actions_workflow_injection_blocked.toml
Outdated
Show resolved
Hide resolved
…ow_injection_blocked.toml Co-authored-by: Samirbous <[email protected]>
…ow_injection_blocked.toml Co-authored-by: Ruben Groenewoud <[email protected]>
…ow_injection_blocked.toml Co-authored-by: Samirbous <[email protected]>
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