Skip to content

Commit 8d7b71b

Browse files
committed
Update Semgrep workflow to use a specific image digest for enhanced security and consistency in CI scans. This change ensures that the same version of Semgrep is used across different runs, improving reliability in the scanning process.
1 parent a9c66ad commit 8d7b71b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/semgrep.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
-e SEMGREP_APP_TOKEN \
3737
-v "$PWD:/src" \
3838
-w /src \
39-
semgrep/semgrep:latest \
39+
semgrep/semgrep@sha256:326e5f41cc972bb423b764a14febbb62bbad29ee1c01820805d077dd868fea48 \
4040
semgrep ci --sarif --sarif-output=reports/semgrep.sarif --no-suppress-errors
4141
else
4242
echo "SEMGREP_APP_TOKEN not set; running semgrep scan with p/ci rules"
4343
docker run --rm \
4444
-v "$PWD:/src" \
4545
-w /src \
46-
semgrep/semgrep:latest \
46+
semgrep/semgrep@sha256:326e5f41cc972bb423b764a14febbb62bbad29ee1c01820805d077dd868fea48 \
4747
semgrep scan --config p/ci --sarif --sarif-output=reports/semgrep.sarif --error
4848
fi
4949
env:

0 commit comments

Comments
 (0)