Skip to content

ci(hypatia-scan): upload SARIF so alerts self-reconcile (pin bump + write) - #111

Merged
hyperpolymath merged 1 commit into
mainfrom
ci/hypatia-sarif-selfreconcile
Jul 11, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
ci/hypatia-sarif-selfreconcile

Conversation

@hyperpolymath

Copy link
Copy Markdown
Collaborator

What

Makes gossamer's Hypatia scan upload SARIF to code scanning, so code-scanning alerts self-reconcile.

  • reusable pin d7c2271 → 2ccc38e (standards main, post-standards#485)
  • permissions: security-events read → write
  • secrets: inherit (lets the reusable use HYPATIA_SCAN_PAT for Dependabot reads; falls back to GITHUB_TOKEN)

Why

The scan previously uploaded hypatia-findings.json as an artifact only, so it could neither create nor close code-scanning alerts. Findings fixed in code stayed "open" forever — that's how ~40 already-fixed alerts (timeouts, believe_me, SD007/SD022, workflow singletons, scorecard checks) got stuck among the 108 open alerts.

With this, every scan uploads SARIF (tool Hypatia, category: hypatia, matching the historical analysis_key), and GitHub auto-closes anything fixed since the last run. No self-echo — the SARIF renderer filters the code_scanning_alerts meta-rules.

Note

The one-off backlog of 108 alerts was already reconciled manually (dismissed with per-alert reasons: stale→won't fix+remediation note, inherent-FFI→won't fix, .envrc→false positive). This PR makes the pipeline self-healing so it doesn't recur.

🤖 Generated with Claude Code

…rite)

Bumps the standards reusable pin to the SARIF-uploading version (hyperpolymath/
standards#485) and grants `security-events: write` so gossamer's Hypatia scan
now uploads SARIF (category "hypatia") to code scanning. From now on, findings
fixed in code auto-close on the next scan instead of orphaning as stale open
alerts — the failure mode that left ~40 already-fixed alerts stuck "open".

- reusable pin d7c2271 -> 2ccc38e (standards main, post-#485)
- permissions: security-events read -> write
- secrets: inherit (lets the reusable use HYPATIA_SCAN_PAT for Dependabot reads;
  falls back to GITHUB_TOKEN otherwise)

The one-off backlog of 108 open alerts was already reconciled manually
(dismissed with per-alert reasons); this makes the pipeline self-healing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) July 11, 2026 11:57
@hyperpolymath
hyperpolymath disabled auto-merge July 11, 2026 11:58
@hyperpolymath
hyperpolymath merged commit 2ea2520 into main Jul 11, 2026
28 checks passed
@hyperpolymath
hyperpolymath deleted the ci/hypatia-sarif-selfreconcile branch July 11, 2026 11:59
@hyperpolymath
hyperpolymath restored the ci/hypatia-sarif-selfreconcile branch July 17, 2026 03:54
@hyperpolymath
hyperpolymath deleted the ci/hypatia-sarif-selfreconcile branch July 26, 2026 10:35
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