Skip to content

Read the bot App id from the ruled variable, not the deleted secret - #33

Merged
coenttb merged 1 commit into
mainfrom
fix/mint-app-id-var-395
Aug 7, 2026
Merged

Read the bot App id from the ruled variable, not the deleted secret#33
coenttb merged 1 commit into
mainfrom
fix/mint-app-id-var-395

Conversation

@coenttb

@coenttb coenttb commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Fixes a consumption of the org secrets deleted under ruling #395.

configure-private-repos forwards client-id: ${{ app-client-id || app-id }} to actions/create-github-app-token. This caller passed both inputs from the deleted secrets, so that expression resolves to empty and the action fails hard.

Adopts the #414 house pattern: one input, from the org variable vars.SWIFT_INSTITUTE_BOT_APP_ID (present at swift-foundations org scope, visibility all). Per the create-github-app-token v2+ contract — quoted in the composite action's own header — client-id accepts an App id as well as a Client id, so the deprecated app-id input is dead weight and is removed rather than repointed. The private key stays a secret and is untouched.

Site: .github/workflows/windows-6.4-proof.yml (1 site).

Part of the #395/#414 mint breakage census. Authored by peer task mint-breakage-census; do not merge without the coordinator.

The org secrets SWIFT_INSTITUTE_BOT_APP_CLIENT_ID and
SWIFT_INSTITUTE_BOT_APP_ID were deleted under ruling #395. This caller
still forwarded both to configure-private-repos, so the composite's
`client-id: ${{ app-client-id || app-id }}` resolved to empty and
create-github-app-token failed hard.

Adopt the #414 house pattern: one input, from the org variable. The
action's client-id accepts an App id as well as a Client id per
create-github-app-token v2+, so the deprecated app-id input is dead
weight and is removed rather than repointed. The private key stays a
secret.

@swift-institute-bot swift-institute-bot Bot 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.

Approved by swift-institute-bot. Migration to the ruled vars.SWIFT_INSTITUTE_BOT_APP_ID per #414; private-key secret untouched. Authored by peer task mint-breakage-census — merge is the coordinator.

@coenttb
coenttb merged commit caa97a7 into main Aug 7, 2026
22 of 23 checks passed
@coenttb
coenttb deleted the fix/mint-app-id-var-395 branch August 7, 2026 07:18
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