Skip to content

ci(dependabot): approve and merge updates via github-sts - #227

Merged
sds merged 1 commit into
mainfrom
github-sts/dependabot
Aug 25, 2026
Merged

ci(dependabot): approve and merge updates via github-sts#227
sds merged 1 commit into
mainfrom
github-sts/dependabot

Conversation

@sds

@sds sds commented Aug 25, 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 repo's Dependabot auto-merge calls the shared tempoxyz/mpp-tools dependabot reusable workflow, and at runtime its approve/merge steps ran on this repo's built-in token.

Follow-up to tempoxyz/mpp-tools#195, which migrated the reusable workflow to mint a short-lived GitHub App token via the tempoxyz/gh-actions/actions/github-sts action, scoped by a trust policy in the repository the workflow runs against.

Changes

  • Bump the reusable-workflow pin to 77de41d7 — the migrated revision, current mpp-tools main.
  • Grant the calling job checks: read, contents: read, pull-requests: read, id-token: write in place of the old write scopes; the approve and merge now happen with the STS-minted token.
  • Add .github/sts/dependabot.sts.yaml, narrowed so only runs triggered by dependabot[bot] that mint through the shared reusable workflow are granted contents: write + pull_requests: write.

Things to verify before flipping the org setting (same as tempoxyz/mpp-tools#195)

  1. Dependabot-triggered runs and OIDC: Dependabot-actor runs are permission-restricted; confirm such a run can obtain an OIDC token with id-token: write before relying on the new path.
  2. Verified-human review requirements: the STS App's approval posts fine but will not satisfy a ruleset that requires verified-human reviews — confirm what auto-merge is meant to satisfy here.

The org is disabling "Allow GitHub Actions to create and approve pull
requests", after which the built-in GITHUB_TOKEN cannot approve PRs. Bump
the shared tempoxyz/mpp-tools dependabot reusable workflow to the revision
that mints a short-lived App token via the github-sts action, grant
id-token: write in place of the old write scopes, and add the trust policy
the mint checks against. Follow-up to tempoxyz/mpp-tools#195.
@sds
sds merged commit 7638689 into main Aug 25, 2026
18 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