Skip to content

Add govulncheck composite action#18

Merged
picatz merged 1 commit intomainfrom
govulncheck
Apr 22, 2026
Merged

Add govulncheck composite action#18
picatz merged 1 commit intomainfrom
govulncheck

Conversation

@picatz
Copy link
Copy Markdown
Contributor

@picatz picatz commented Apr 22, 2026

This PR introduces a differential govulncheck analysis that scans the current branch and compares against the base branch, failing only on newly introduced vulnerabilities. Pre-existing vulns are reported, but don't block.

  • Auto-detects base SHA on pull_request and merge_group events.
  • Installs govulncheck once, scans both branches, diffs the results.
  • Writes a GitHub job summary with markdown tables linking to pkg.go.dev.
  • Exposes new-count and has-new-vulns outputs for downstream steps.
  • Best-effort base scan with EXIT trap to guarantee HEAD restoration.

Differential govulncheck analysis that scans the current branch and
compares against the base branch, failing only on newly introduced
vulnerabilities. Pre-existing vulns are reported but don't block.

- Auto-detects base SHA on pull_request and merge_group events
- Installs govulncheck once, scans both branches, diffs the results
- Writes a GitHub job summary with markdown tables linking to pkg.go.dev
- Exposes new-count and has-new-vulns outputs for downstream steps
- Best-effort base scan with EXIT trap to guarantee HEAD restoration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@picatz picatz requested a review from a team as a code owner April 22, 2026 19:25
@picatz picatz merged commit b847cb7 into main Apr 22, 2026
3 checks passed
@picatz picatz deleted the govulncheck branch April 22, 2026 19:28
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