Skip to content

fix(ci): restore Trivy SARIF upload to harden-gate with category:trivy#216

Merged
izzywdev merged 1 commit into
masterfrom
claude/restore-trivy-harden-gate-6e63e8
Jul 12, 2026
Merged

fix(ci): restore Trivy SARIF upload to harden-gate with category:trivy#216
izzywdev merged 1 commit into
masterfrom
claude/restore-trivy-harden-gate-6e63e8

Conversation

@izzywdev

Copy link
Copy Markdown
Owner

Summary

  • Restores the upload-sarif step in gate-dependency-scan that was removed in commit 8205093 (incorrectly believed to cause a race condition)
  • Adds detect-pr step so SARIF uploads target the correct PR ref/sha on push/workflow_dispatch events
  • Adds pull-requests: read permission required by the gh api lookup
  • Adds ignore-unfixed: true and trivyignores: '.trivyignore' to suppress noise

Why

Master's Code Scanning baseline requires two Trivy configurations:

  1. ci.yml:security-scan (no category) — already satisfied
  2. harden-gate.yml with category: trivy — was broken because the upload step was removed

This restores configuration 2, which unblocks the "Trivy" Code Scanning check on PRs.

Test plan

  • CI runs harden-gate.yml:gate-dependency-scan on this PR
  • Code Scanning shows harden-gate.yml:trivy configuration satisfied (no "1 configuration not found" error)

🤖 Generated with Claude Code

…y-scan with category:trivy

Add detect-pr step so SARIF uploads to the correct PR ref/sha, and add
pull-requests: read permission required by the gh api lookup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session-Id: 4828017f-ed5a-491d-91fa-edc6d6648789
@github-actions
github-actions Bot enabled auto-merge (squash) July 12, 2026 10:28
@github-actions

Copy link
Copy Markdown
Contributor

Automated code review (gate-code-review)

Credit balance is too low

Report-only — this check never blocks merge.

// that failure was previously masked because the permit-pdp service
// container aborted the CI job before any test ran.
// Hash passwords so the login endpoint can verify them in API tests.
const ownerHash = await bcrypt.hash('test-password', 10)
// container aborted the CI job before any test ran.
// Hash passwords so the login endpoint can verify them in API tests.
const ownerHash = await bcrypt.hash('test-password', 10)
const adminHash = await bcrypt.hash('admin-password', 10)
@izzywdev
izzywdev merged commit eaafb82 into master Jul 12, 2026
50 checks passed
@izzywdev
izzywdev deleted the claude/restore-trivy-harden-gate-6e63e8 branch July 12, 2026 11:26
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