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

Create Github.Repo.RulesetModified rule #1453

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

geoffg-sentry
Copy link
Contributor

Background

The cool kidz these days are using ruleset instead of or in combination with branch protection rules. This rule alerts to modifications (update, destroy) of rulesets and adds an INFO-level signal for ruleset creations if desired for future correlation rules. Filters can be applied in global_filter_github and the github_alert_context is enriched specific to repo ruleset changes.

[1] https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets

Changes

  • Create GitHub.Repo.RulsetModified rule
  • Tests for each create/update/destroy event type
  • Update the github.yml pack

Testing

pat test, make lint

### Background

The cool kidz these days are using ruleset instead of or in combination with branch protection rules. This rule alerts to modifications (update, destroy) of rulesets and adds an INFO-level signal for ruleset creations if desired for future correlation rules. Filters can be applied in global_filter_github and github_alert_context is enriched specific to repo ruleset changes.

[1] https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets

### Changes

- Create GitHub.Repo.RulsetModified rule
- Tests for each create/update/destroy event type
- Update the github.yml pack

### Testing

pat test, make lint
@geoffg-sentry geoffg-sentry requested a review from a team as a code owner December 17, 2024 21: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.

1 participant