Skip to content

fix(ci): pin renovate checksum-update checkout to head sha - #100

Merged
Stensel8 merged 1 commit into
mainfrom
claude/kan-je-dit-oplossen-o894gy
Aug 23, 2026
Merged

fix(ci): pin renovate checksum-update checkout to head sha#100
Stensel8 merged 1 commit into
mainfrom
claude/kan-je-dit-oplossen-o894gy

Conversation

@Stensel8

@Stensel8 Stensel8 commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Fix 1 code scanning warning.

The update-checksums job checks out github.head_ref, a mutable branch
name, with contents:write permissions. CodeQL flags this as an
untrusted checkout even though the job's if: already restricts it to
renovate[bot]'s own same-repo branches, because that guard isn't
recognized as a mitigation for plain pull_request events. Pin the
checkout to github.event.pull_request.head.sha instead, the fixed
commit the triggering event actually refers to, which also closes a
TOCTOU window where a later push to the branch could slip in commits
the if: check never saw.
Copilot AI lite review requested due to automatic review settings August 23, 2026 07:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Stensel8
Stensel8 merged commit 3fd2a4d into main Aug 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants