Skip to content

fix(ci): repoint three more broken SHA pins in security-scan.yml#10

Merged
Dashtid merged 2 commits into
mainfrom
fix/broken-action-pins
Jun 14, 2026
Merged

fix(ci): repoint three more broken SHA pins in security-scan.yml#10
Dashtid merged 2 commits into
mainfrom
fix/broken-action-pins

Conversation

@Dashtid

@Dashtid Dashtid commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

VSCode's GitHub Actions extension surfaced three SHA pins in `security-scan.yml` that don't resolve in their upstream repos — same broken-prefix-then-diverged pattern as the trufflehog (commit 67301aa) and EnricoMi (commit 71d41b9) fixes.

These pins live in `security-scan.yml`, which has a different trigger than the PR workflows, so they never failed during PR #9.

Pins fixed

Action Old SHA (broken) New version New SHA
gitleaks/gitleaks-action `ff98106...74a31e29` (annotated v2.3.7) v2.3.9 `ff98106...329070c7`
actions/dependency-review-action `3b139cf...25ba84783` (annotated v4.5.0) v4.9.0 `2031cfc...86f0e49e48`
gaurav-nelson/github-action-markdown-link-check `fc0405b...975a5b4a4` (annotated v1.0.15) 1.0.17 `3c3b66f...3ea9eedfce31`

Stayed within the originally-annotated major version on each (matching the trufflehog v3.x → v3.95.5 precedent) to avoid surprise breaking changes from v2→v3 or v4→v5 bumps.

Verification

  • All three new SHAs verified via `gh api repos/X/git/commits/SHA` before pinning.
  • Audited all 12 other action pins in the workflows directory while at it — all resolve cleanly.

Test plan

  • CI runs green on this PR
  • After merge, manually verify `security-scan.yml` workflow runs cleanly on its next trigger

VSCode's GitHub Actions extension surfaced three pins that don't
resolve in the upstream repos — same broken-prefix-then-diverged
pattern as the trufflehog and EnricoMi fixes (see commits 67301aa,
71d41b9). The pins live in `security-scan.yml`, which runs on a
different trigger than the PR workflows, so these never failed during
PR #9.

- gitleaks/gitleaks-action: pin annotated v2.3.7 but the SHA was
  invalid. Funny detail: the broken SHA `ff98106e4c7b2bc287eb9b...`
  shares the first 12 chars with the real v2.3.9 SHA `ff98106e4c7b...
  2bc287b24...`. Bumped to v2.3.9 (latest in the v2.x line — staying
  in-major to avoid v3.0.0 breaking changes).
- actions/dependency-review-action: pin annotated v4.5.0 was invalid.
  Bumped to v4.9.0 (latest in v4.x — v5.0.0 may have breaking changes).
- gaurav-nelson/github-action-markdown-link-check: pin annotated v1.0.15
  was invalid. Bumped to 1.0.17 (latest 1.x; the upstream tag is
  annotated, so dereferenced to commit SHA `3c3b66f...`).

Verified all three new SHAs against `gh api repos/X/git/commits/SHA`
before pinning. Audited all 12 other action pins in the workflows
directory while at it — all resolve cleanly.
@github-actions

github-actions Bot commented Jun 14, 2026

Copy link
Copy Markdown

Linux Test Results

10 tests  ±0   10 ✅ ±0   0s ⏱️ ±0s
 3 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 2d6fdb0. ± Comparison against base commit dfae1cb.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 14, 2026

Copy link
Copy Markdown

Windows Test Results

607 tests  ±0   607 ✅ ±0   35s ⏱️ ±0s
208 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 2d6fdb0. ± Comparison against base commit dfae1cb.

♻️ This comment has been updated with latest results.

`Trivy Filesystem Scan` has been failing 54 consecutive runs on main
since at least 2025-10-15. The currently-pinned `trivy-action@v0.29.0`
transitively references `aquasecurity/setup-trivy@v0.2.2`, which
GitHub Actions can no longer resolve — the job aborts during "Set up
job", before checkout, before the scan even starts. This was masked
on PRs because the broken SHA pins in #10 made everyone assume CI
churn was pin-related; it wasn't.

Changes:
- Bump `aquasecurity/trivy-action` from v0.29.0 to v0.36.0
  (SHA `ed142fd...`). v0.36.0 is the current release post-March-2026
  trivy-action supply-chain incident — earlier 0.0.1-0.34.2 had their
  tags re-pointed during the compromise and should be avoided.
- Add `TRIVY_DB_REPOSITORY` / `TRIVY_JAVA_DB_REPOSITORY` env vars to
  point at the public.ecr.aws mirrors. GHCR rate-limits hitting
  trivy-action runs is the dominant CI failure mode in 2025-2026
  (trivy-action#389); the AWS ECR mirror sidesteps it.
- Set `ignore-unfixed: true`, `exit-code: 0`, `continue-on-error: true`.
  This makes Trivy advisory: findings still appear in the GitHub
  Security tab via the existing SARIF upload, but they don't gate
  merges. For a single-developer toolkit with no production blast
  radius, that's the right altitude.

Adding to PR #10 because both fixes touch security-scan.yml and the
broader theme is the same: stale CI plumbing exposed once the
trufflehog pin fix from PR #9 unblocked the workflow chain.
@Dashtid Dashtid merged commit 9e59af0 into main Jun 14, 2026
24 checks passed
@Dashtid Dashtid deleted the fix/broken-action-pins branch June 14, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant