Fix Semgrep SAST findings: Dependabot cooldown and pinned action#3
Merged
Conversation
- Add cooldown (default-days: 7) to the github-actions Dependabot ecosystem entry so newly published packages wait before being proposed (CWE-829 / A08:2021). - Pin dependabot/fetch-metadata to its full-length commit SHA instead of the mutable @v2 tag to prevent supply-chain tag repointing (CWE-1357/CWE-353 / A08:2021). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Remediates the 2 Semgrep SAST findings reported for this repo. No Critical/High dependency findings were present.
SAST fixes
dependabot-missing-cooldown(High) —.github/dependabot.yml:3Added a
cooldownblock withdefault-days: 7to thegithub-actionsecosystem entry, so newly published packages wait 7 days before Dependabot proposes them. Mitigates malicious/unstable fresh releases (CWE-829, A08:2021 — Software and Data Integrity Failures).github-actions-mutable-action-tag(High) —.github/workflows/dependabot-auto-merge.yml:14Pinned
dependabot/fetch-metadatafrom the mutable@v2tag to the full-length commit SHA21025c705c08248db411dc16f3619e6b5f9ea21a(still v2), with a# v2comment for readability. Prevents silent tag repointing / supply-chain attacks (CWE-1357, CWE-353, A08:2021).Dependency findings
None (no Critical/High dependency findings for this repo).
Verification
python3YAML parse of both edited files: OK (both parse cleanly).git diffreviewed: 3 insertions, 1 deletion, scoped to the two flagged files.🤖 Generated with Claude Code