Skip to content

[CHORE](ci) Point version-check workflow at MCD CodeArtifact - #747

Merged
John McCall (lowlydba) merged 6 commits into
mainfrom
lowlydba-cutover-pypi-consumers-to-codeartifact
Sep 16, 2026
Merged

John McCall (lowlydba) merged 6 commits into
mainfrom
lowlydba-cutover-pypi-consumers-to-codeartifact

Conversation

@lowlydba

@lowlydba John McCall (lowlydba) commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Context

Part of the OvertureMaps/ops-team#520 MCD CodeArtifact cutover. #745 tracks this repo's full cutover; the legacy publish-step removal there stays blocked until consumers are confirmed off legacy. This PR only lands the version-check workflow's account default flip, which doesn't touch main-publish.yaml's dual-publish behavior.

Change

reusable-check-python-package-versions.yaml's aws_account_id/aws_iam_role_name defaults move from legacy (505071440022, GithubActions_Schema_CodeArtifact_ReadOnly) to MCD (763944545891, codeartifact-pypi-readonly-oidc-overturemaps).

That role is a dedicated read-only role added in OvertureMaps/omf-core-data-opentofu#120 (now merged), scoped to GetAuthorizationToken/GetRepositoryEndpoint/ReadFromRepository only, closing OvertureMaps/ops-team#521. It replaces an earlier draft of this PR that reused the publish-capable role, which Copilot's review correctly flagged as risky for a pull_request-triggered check.

Testing

I added a temporary version bump commit on this branch to trigger the modified CI workflow, and it ran successfully: https://github.com/OvertureMaps/schema/actions/runs/34978920990/job/104413801496?pr=747

The commit has been reverted ✅

Fixes #746

@lowlydba
John McCall (lowlydba) force-pushed the lowlydba-cutover-pypi-consumers-to-codeartifact branch from b8f550d to 2428234 Compare September 14, 2026 18:20
@lowlydba John McCall (lowlydba) changed the title [CHORE](ci) Point version-check workflow at MCD CodeArtifact [CHORE](ci) Note pending MCD flip in version-check workflow Sep 14, 2026
@github-actions

github-actions Bot commented Sep 14, 2026

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/747/schema/index.html
🕐 Updated Sep 16, 2026 13:24 UTC
📝 Commit 2f21737
🔧 env SCHEMA_PREVIEW true

Note

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

@lowlydba
John McCall (lowlydba) force-pushed the lowlydba-cutover-pypi-consumers-to-codeartifact branch from 2428234 to 7983297 Compare September 14, 2026 18:22
@lowlydba John McCall (lowlydba) changed the title [CHORE](ci) Note pending MCD flip in version-check workflow [CHORE](ci) Point version-check workflow at MCD CodeArtifact Sep 14, 2026
@lowlydba
John McCall (lowlydba) force-pushed the lowlydba-cutover-pypi-consumers-to-codeartifact branch from 7983297 to 89c14df Compare September 14, 2026 19:57
@lowlydba
John McCall (lowlydba) marked this pull request as ready for review September 14, 2026 20:42
@lowlydba
John McCall (lowlydba) requested a review from a team as a code owner September 14, 2026 20:42
Copilot AI lite review requested due to automatic review settings September 14, 2026 20:42

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.

🟡 Changes recommended

Use a read-only role or otherwise prevent untrusted pull requests from assuming the publish-capable role.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the reusable package-version check workflow to use MCD CodeArtifact defaults.

Changes:

  • Switches the default AWS account to MCD.
  • Switches the default IAM role to the MCD CodeArtifact publish role.
  • Leaves publishing workflow behavior unchanged.
File summaries
File Summary
.github/workflows/reusable-check-python-package-versions.yaml Updates CodeArtifact defaults. The publish-capable role creates a critical security concern for pull-request workflows.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/reusable-check-python-package-versions.yaml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lgtm

@vcschapp

Copy link
Copy Markdown
Collaborator

John McCall (@lowlydba) I'm unable to merge b/c of DCO checks failing on two commits, cea02b2 (Revert "chore: exercise changed CI workflow") and adede8f (Revert "test commit"). ... Other than that it's ready to go!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this!

Flips reusable-check-python-package-versions.yaml's aws_account_id/
aws_iam_role_name defaults from legacy CodeArtifact to MCD, reusing
codeartifact-pypi-publish-oidc-overturemaps: MCD has no dedicated
read-only role and won't get one, but the publish role already grants
codeartifact:ReadFromRepository and its OIDC trust policy allows
pull_request-context assumption in this repo.

Closes #746

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

Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
This reverts commit 0a5f376.

Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
This reverts commit eed4eaa.

Signed-off-by: John McCall <john@overturemaps.org>
@lowlydba
John McCall (lowlydba) merged commit e074163 into main Sep 16, 2026
27 checks passed
@lowlydba
John McCall (lowlydba) deleted the lowlydba-cutover-pypi-consumers-to-codeartifact branch September 16, 2026 14:37
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.

[CHORE](ci) Flip version-check workflow to MCD CodeArtifact

5 participants