Repository navigation
ci(lint): pin the semgrep container image by digest - #5245
Merged
Merged
Conversation
zizmor 'unpinned-images': the semgrep job ran 'container: returntocorp/semgrep' with no tag or digest, so each run pulled a mutable ':latest', making the lint environment non-reproducible and trusting whatever that tag points to at run time. Pin to 1.99.0 at its current digest (sha256:ae27024c...), matching the SHA-pinning already used for every action in this repo. lint.yml unpinned-images findings go to 0; actionlint clean.
Use the 1.181.1 index digest that Semgrep's latest tag points to and that main's CI already pulls, instead of the much older 1.99.0 pin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dustin-decker
approved these changes
Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
zizmorunpinned-images: thesemgrepjob inlint.ymlrancontainer: returntocorp/semgrepwith no tag or digest, so each run pulled a mutable:latest— a non-reproducible lint environment that trusts whatever that tag points to at run time. This pins to1.181.1at its current digest (the promoted-stable image that Semgrep'slatesttag points to, which current main CI already pulls), matching the SHA-pinning this repo already applies to everyuses:action.(Digest resolved from Docker Hub for tag
1.181.1on 2026-10-23.)Result
lint.ymlunpinned-images finding: 0actionlint: cleanChecklist
lint.ymlparses and passesactionlintNote
Low Risk
CI-only workflow change; no application, auth, or runtime behavior is affected.
Overview
The semgrep job in
.github/workflows/lint.ymlno longer uses the barereturntocorp/semgrepimage (effectively mutable:latest). It now runsreturntocorp/semgrep:1.99.0pinned with a SHA256 digest, so lint runs use a fixed Semgrep version and image content, aligned with how other workflow dependencies are SHA-pinned.Reviewed by Cursor Bugbot for commit 892f594. Bugbot is set up for automated code reviews on this repo. Configure here.