Skip to content

chore: use pages-staging-scoped role for PR previews - #397

Merged
John McCall (lowlydba) merged 1 commit into
mainfrom
lowlydba-ci-pages-staging-scoped-role
Nov 4, 2026
Merged

John McCall (lowlydba) merged 1 commit into
mainfrom
lowlydba-ci-pages-staging-scoped-role

Conversation

@lowlydba

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

Copy link
Copy Markdown
Contributor

Resolves #396

PR previews currently assume the broad pages-staging role. This moves the deploy and cleanup jobs to pages-staging-scoped-oidc-overturemaps, which only trusts jobs running in the staging environment. The deploy job already declares that environment, so the cleanup job gains environment: staging.

Pre-merge

  • OvertureMaps/omf-core-data-opentofu#149 applied, otherwise preview deploy and cleanup fail to assume the role

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

Signed-off-by: John McCall <john@overturemaps.org>
@lowlydba
John McCall (lowlydba) force-pushed the lowlydba-ci-pages-staging-scoped-role branch from 0cc78c5 to 299a4f8 Compare November 4, 2026 15:03
@lowlydba John McCall (lowlydba) changed the title ci: use pages-staging-scoped role for PR previews chore: use pages-staging-scoped role for PR previews Nov 4, 2026
@lowlydba
John McCall (lowlydba) marked this pull request as ready for review November 4, 2026 15:05
@lowlydba
John McCall (lowlydba) requested a review from a team as a code owner November 4, 2026 15:05
Copilot AI balanced review requested due to automatic review settings November 4, 2026 15:05

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 prerequisite IAM change in OvertureMaps/omf-core-data-opentofu#149 was inaccessible, leaving its application and scoped-role preview deployment and closed-PR cleanup unverified.

No open issues 🎉

What changed in this PR

Narrows AWS access for PR preview deployments and cleanup by switching both jobs to the staging-scoped role.

Changes:

  • Uses pages-staging-scoped-oidc-overturemaps for preview deployment and cleanup.
  • Adds environment: staging to cleanup to satisfy the role’s trust requirements.

The referenced infrastructure change must be applied before merging so both jobs can assume the new role.

File Description
.github/​workflows/​staging-deploy-cleanup.yml Uses the scoped role and adds the required staging environment.
.github/​workflows/​deploy-staging.yml Switches preview deployment to the scoped role.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

🗺️ Overture Explorer preview is live!

🌍 Preview https://staging.overturemaps.org/explore-site/pr/397/index.html
🕐 Updated 2026-11-04T18:48:29Z
📝 Commit 23ab476

Note

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

@lowlydba
John McCall (lowlydba) merged commit 7a21aec into main Nov 4, 2026
19 of 21 checks passed
@lowlydba
John McCall (lowlydba) deleted the lowlydba-ci-pages-staging-scoped-role branch November 4, 2026 18:48

This branch was previously deployed

1 inactive deployment
staging — 299a4f8e Deployed Nov 4, 2026 by lowlydba via Cleanup #57
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.

Move PR previews to the pages-staging-scoped OIDC role

3 participants