Skip to content

ci: Harden workflows#1054

Merged
RandomByte merged 1 commit into
mainfrom
ci/hardening
May 27, 2026
Merged

ci: Harden workflows#1054
RandomByte merged 1 commit into
mainfrom
ci/hardening

Conversation

@RandomByte

Copy link
Copy Markdown
Member
  • Scope release-please write permissions to the pull-request job so the
    publish-package job runs with only id-token: write.
  • Replace spoofable github.actor check in dependabot-auto-merge with
    github.event.pull_request.user.login. Note: spoofing the dependabot
    actor alone is not sufficient to trigger the auto-merge step. The
    dependabot/fetch-metadata action only emits outputs for genuine
    dependabot PRs, so the merge step's check on
    steps.metadata.outputs.update-type would no-op on a spoofed run. The
    change closes the gap defensively.

- Scope release-please write permissions to the pull-request job so the
  publish-package job runs with only id-token: write.
- Replace spoofable github.actor check in dependabot-auto-merge with
  github.event.pull_request.user.login. Note: spoofing the dependabot
  actor alone is not sufficient to trigger the auto-merge step. The
  dependabot/fetch-metadata action only emits outputs for genuine
  dependabot PRs, so the merge step's check on
  steps.metadata.outputs.update-type would no-op on a spoofed run. The
  change closes the gap defensively.
@RandomByte RandomByte requested a review from matz3 May 26, 2026 09:46
@RandomByte RandomByte merged commit f09019f into main May 27, 2026
17 checks passed
@RandomByte RandomByte deleted the ci/hardening branch May 27, 2026 08:37
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.

2 participants