Skip to content

Commit 93d2f48

Browse files
sunny-seclaude
andauthored
fix(security): pin Semgrep CI container image by SHA digest (#15)
F-004 / DEVA11Y-476 — The Semgrep workflow used an unpinned image tag (CWE-829), enabling tag-poisoning attacks. Pin to SHA256 digest. This is the chain-breaker for C-001 (DEVA11Y-485, CVSS 10.0). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9993b99 commit 93d2f48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/Semgrep.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
container:
29-
# A Docker image with Semgrep installed. Do not change this.
30-
image: returntocorp/semgrep
29+
# Pinned by digest for supply-chain integrity (DEVA11Y-476).
30+
# To update: docker manifest inspect returntocorp/semgrep:latest
31+
image: returntocorp/semgrep@sha256:f682953ce85e3725f4a4dd94bd7ad13e570bb6b2c7a8cf7c6e38a9eac89239b2
3132

3233
# Skip any PR created by dependabot to avoid permission issues:
3334
if: (github.actor != 'dependabot[bot]')

0 commit comments

Comments
 (0)