Skip to content

ci(cargo-update-pr): open the update PR via github-sts - #14

Merged
sds merged 1 commit into
mainfrom
github-sts/cargo-update-pr
Aug 25, 2026
Merged

sds merged 1 commit into
mainfrom
github-sts/cargo-update-pr

Conversation

@sds

@sds sds commented Aug 24, 2026

Copy link
Copy Markdown
Member

Motivation

We are disabling the org-level "Allow GitHub Actions to create and approve pull requests" setting, after which the built-in GITHUB_TOKEN can no longer open or approve pull requests. This reusable workflow took a token secret documented as GITHUB_TOKEN and handed it to peter-evans/create-pull-request.

No repository currently calls this workflow, and it is a stale duplicate of the canonical copy in tempoxyz/gh-actions (migrated in a sibling PR). Deleting this file instead is a perfectly good alternative — this PR migrates it so the repo carries nothing that depends on the org setting either way.

Changes

  • Replace the required token secret with an in-workflow STS mint (tempoxyz/gh-actions/actions/github-sts, SHA-pinned, policy cargo-update-pr), scoped to whichever repository calls the workflow.
  • Declare contents: read + id-token: write on the job; callers grant the same on their calling job and carry a .github/sts/cargo-update-pr.sts.yaml policy granting contents: write + pull_requests: write.
  • Pass the minted token and the STS bot identity to peter-evans/create-pull-request.

The org is disabling "Allow GitHub Actions to create and approve pull
requests", after which the built-in GITHUB_TOKEN cannot open PRs. Replace
the token secret (documented as GITHUB_TOKEN) with an in-workflow github-sts
mint against the caller repo's cargo-update-pr policy. No repository
currently calls this workflow; it is a stale duplicate of the copy in
tempoxyz/gh-actions, so deleting it is a reasonable alternative.
@sds
sds merged commit 424deca into main Aug 25, 2026
3 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.

1 participant