Skip to content

ci(sigma-validation): run on every PR so both jobs can join the ruleset - #363

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/nifty-carson-f795f8
Oct 14, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/nifty-carson-f795f8

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

The ruleset on main (id 18274007) requires sigma validate + compile but not sigma rules fire on synthetic event logs or cloud sigma rules fire on synthetic events (nested-field plane), and both were path-filtered on pull_request, which rules them out: a path-filtered required check never reports on a PR that misses its paths, and that PR never merges (#213). So #354 merged with the host plane failing and main stayed red for four days. A Renovate PR with auto-merge on (#353 has it today) squashes the moment the compile gate is green, red validation or not.

The filter goes, exactly as sigma.yml did it. Both jobs are pure CPU on a checkout and run in a few minutes. push stays filtered.

Not in this diff: the ruleset half

After this merges, add these two contexts to the existing ruleset on main (Settings → Rules → Rulesets → the main ruleset → "Require status checks to pass"):

  • sigma rules fire on synthetic event logs
  • cloud sigma rules fire on synthetic events (nested-field plane)

Already required there, no change needed: guard / integrity, the four lint / … jobs, role layer + installer (functional), bootstraps on a bare ubuntu:24.04, sigma validate + compile.

Still path-filtered, so do not add them yet: zeek detections fire on synthetic PCAPs, suricata detections fire on synthetic PCAPs (network-validation.yml), and detection lab boots and serves (lab-smoke.yml, opted out by design).

🤖 Generated with Claude Code

The ruleset on main requires `sigma validate + compile` but not
`sigma rules fire on synthetic event logs` or `cloud sigma rules fire on
synthetic events (nested-field plane)`, and both were path-filtered on
`pull_request`, which rules them out: a path-filtered required check never
reports on a PR that misses its paths, and that PR never merges (#213). So
#354 merged with the host plane failing and main stayed red for four days.
A Renovate PR with auto-merge on squashes the moment the compile gate is
green, red validation or not.

The filter goes, exactly as sigma.yml did it. Both jobs are pure CPU on a
checkout and run in a few minutes. `push` stays filtered. Adding the two
contexts to the ruleset is a repo-settings change and is not in this diff.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 19:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The trigger change is correct, focused, and consistent with the existing required Sigma check pattern.

0 open findings

What changed in this PR

Ensures Sigma efficacy checks run on every PR so they can become required status checks without deadlocking merges.

Changes:

  • Removes PR path filtering from Sigma validation.
  • Documents the CI/ruleset rationale.
File Description
.github/​workflows/​sigma-validation.yml Runs both validation jobs on every PR.
CHANGELOG.md Records the workflow policy change.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Gerrrt
Gerrrt enabled auto-merge (squash) October 14, 2026 20:05
@Gerrrt
Gerrrt merged commit b6485ee into main Oct 14, 2026
15 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/nifty-carson-f795f8 branch October 14, 2026 20:09
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