Skip to content

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

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

ci(dependabot): approve and merge updates via github-sts#919
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.
  3. Requires the Tempo GitHub STS App to be installed on this repository.

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.
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview Aug 25, 2026 1:18am

Request Review

@github-actions github-actions Bot added the infra label Aug 25, 2026
@sds
sds merged commit 17aa33a into main Aug 25, 2026
14 checks passed
@sds
sds deleted the github-sts/dependabot branch August 25, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant