Skip to content

chore: use releaser-token action - #821

Merged
John McCall (lowlydba) merged 1 commit into
mainfrom
lowlydba-use-releaser-token-action
Nov 11, 2026
Merged

John McCall (lowlydba) merged 1 commit into
mainfrom
lowlydba-use-releaser-token-action

Conversation

@lowlydba

@lowlydba John McCall (lowlydba) commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

Start with Why

Four workflows each hand-rolled the same AWS OIDC → Secrets Manager → create-github-app-token sequence, and two of them (uv-lock-refresh, rebase-vnext) still depended on a long-lived OVERTURE_PULL_REQUESTER_APP_PEM GitHub secret.

What we gain

  • No app PEM stored as a GitHub secret; keys come from Secrets Manager via short-lived OIDC credentials.
  • One audited, centrally maintained token action ([FEATURE] releaser-token composite action + semver releases workflows#138) instead of four copies; the PEM is cleared from $GITHUB_ENV after use.
  • Token permissions are validated (at least one permission-* required) and scoped to the current repo by default.
  • Dependabot keeps the action current via a new OvertureMaps/workflows* minor/patch group.
  • Roughly 30 fewer lines of workflow YAML.

Changes

Migrate release-trigger, docs-publish, uv-lock-refresh and rebase-vnext to OvertureMaps/workflows/.github/actions/releaser-token@9ddbb7e… # v1.0.0. Token scopes and app identities are unchanged. Jobs gain id-token: write / contents: read as the action requires; uv-lock-refresh and rebase-vnext also set clear-aws-credentials: true.

Reference

  1. Closes Migrate to the releaser-token action #820
  2. [FEATURE] releaser-token composite action + semver releases workflows#138

Testing

zizmor .github/workflows: no findings. YAML parses. Not run: actionlint (not installed); workflows themselves only run on main/schedule.

Checklist

N/A (CI-only change).

Manual follow-up (after first successful run on main)

Delete the superseded secret (repo, org and Dependabot scopes): OVERTURE_PULL_REQUESTER_APP_PEM

Closes #820

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
@github-actions

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/821/schema/index.html
🕐 Updated Nov 11, 2026 15:02 UTC
📝 Commit e81c262
🔧 env SCHEMA_PREVIEW true

Note

♻️ This preview updates automatically with each push to this PR.

@lowlydba
John McCall (lowlydba) marked this pull request as ready for review November 11, 2026 15:35
@lowlydba
John McCall (lowlydba) requested a review from a team as a code owner November 11, 2026 15:35
Copilot AI balanced review requested due to automatic review settings November 11, 2026 15:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The pull-requester OIDC path remains unverified because the reader role’s external IAM configuration was inaccessible and neither migrated job has run to validate role assumption and secret access.

No open issues 🎉

What changed in this PR

Centralizes GitHub App token creation across four workflows using the shared releaser-token action, implementing the migration described in #820.

Changes:

  • Replaces inline token setup and GitHub-stored PEM references with the pinned shared action.
  • Adds required job permissions and enables AWS credential cleanup in the lockfile-refresh and rebase workflows.
  • Groups minor and patch updates for OvertureMaps/workflows* in Dependabot.
File Description
.github/​workflows/​uv-lock-refresh.yml Uses OIDC-backed pull-requester tokens and clears AWS credentials afterward.
.github/​workflows/​release-trigger.yaml Replaces inline AWS and token setup with the shared action’s defaults.
.github/​workflows/​rebase-vnext.yaml Migrates pull-requester authentication while retaining explicit token permissions.
.github/​workflows/​docs-publish.yml Uses the shared action with a docs-scoped, actions-write token.
.github/​dependabot.yml Groups shared-workflow action updates for minor and patch releases.

Review effort: Balanced

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Four hand-rolled token steps become one shared action, and the PEM secret is gone.

This Is The Way GIF

@lowlydba
John McCall (lowlydba) merged commit 2135f34 into main Nov 11, 2026
41 of 44 checks passed
@lowlydba
John McCall (lowlydba) deleted the lowlydba-use-releaser-token-action branch November 11, 2026 15:57

This branch was previously deployed

1 inactive deployment
staging — e81c2622 Deployed Nov 11, 2026 by lowlydba via Cleanup #189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation 🦾 Change/enhance automation of a process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to the releaser-token action

4 participants