Skip to content

docs(workflow): correct hash-sync gate description#12

Merged
walkindude merged 1 commit intomasterfrom
fix/hash-sync-comment-mismatch
Apr 26, 2026
Merged

docs(workflow): correct hash-sync gate description#12
walkindude merged 1 commit intomasterfrom
fix/hash-sync-comment-mismatch

Conversation

@walkindude
Copy link
Copy Markdown
Owner

Summary

  • The security comment in dependabot-nix-hash-sync.yml claimed the job gated on github.actor, but the if: condition correctly checks github.event.pull_request.user.login. Comment now matches code.
  • Inlines the rationale for pull_request.user.login over github.actor: the actor becomes the human commenter when someone runs @dependabot rebase, which would silently break the gate and let unauthorized writes slip through pull_request_target's elevated permissions.
  • Corrects the third security bullet: the loop protection isn't actor-flipping; it's GITHUB_TOKEN's no-retrigger rule. Same fact as the gosymdb sibling workflow describes.

Comments-only. No behaviour change.

Test plan

  • git diff shows only comment lines change
  • Pre-commit hook passes (typecheck, tests both green locally)
  • CI green on this PR

The security comment claimed the job gated on `github.actor`, but the
`if:` condition correctly checks `github.event.pull_request.user.login`.
Updates the comment to match the code, with the rationale (the
`@dependabot rebase` failure mode where actor becomes the human
commenter) inline. Also corrects the loop-protection bullet: the
reason re-pushes don't re-trigger this workflow is GITHUB_TOKEN's
no-retrigger rule, not the actor flipping to github-actions[bot].

Comments-only; no behaviour change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@walkindude walkindude merged commit 7c23a86 into master Apr 26, 2026
9 checks passed
@walkindude walkindude deleted the fix/hash-sync-comment-mismatch branch April 26, 2026 15:49
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.

1 participant