Skip to content

ci(release): switch token mint to client-id var#721

Merged
kojiromike merged 2 commits into
openemr:masterfrom
kojiromike:release-app-client-id
May 14, 2026
Merged

ci(release): switch token mint to client-id var#721
kojiromike merged 2 commits into
openemr:masterfrom
kojiromike:release-app-client-id

Conversation

@kojiromike
Copy link
Copy Markdown
Member

The RELEASE_APP_ID org secret was deleted in favor of a RELEASE_APP_CLIENT_ID org variable (#701). This swaps every workflow that mints a release App token to the new variable and updates the plan doc to match.

Files touched:

  • .github/workflows/release-rotation.yml
  • .github/workflows/release-permissions-check.yml
  • .github/workflows/ship-release.yml
  • .github/workflows/build-patch.yml
  • .github/workflows/build-release.yml
  • docs/release-automation-plan.md

build-patch.yml and build-release.yml had already moved to the client-id: input but were still reading the deleted secrets.RELEASE_APP_ID — this fixes that half-migrated state. Private-key references are unchanged.

The RELEASE_APP_ID org secret was deleted in favor of a RELEASE_APP_CLIENT_ID org variable (openemr#701). Three workflows still passed the deleted secret as app-id; build-patch.yml and build-release.yml were already on the client-id input but still pointed at the deleted secret as the source. Swap all five over to vars.RELEASE_APP_CLIENT_ID and update the plan doc and release-permissions-check.yml header comment to reflect the variable-vs-secret split. Private-key references unchanged.

Assisted-by: Claude Code
Copilot AI review requested due to automatic review settings May 14, 2026 00:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates release automation workflows and documentation to mint GitHub App tokens using the RELEASE_APP_CLIENT_ID organization variable instead of the removed RELEASE_APP_ID secret.

Changes:

  • Replaces release App token inputs with client-id: ${{ vars.RELEASE_APP_CLIENT_ID }}.
  • Updates release permissions documentation/comments to describe the new variable plus existing private key secret.
  • Removes remaining references to the deleted RELEASE_APP_ID secret in touched release workflows.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/build-patch.yml Uses the new org variable for release App token generation.
.github/workflows/build-release.yml Uses the new org variable for release App token generation.
.github/workflows/release-permissions-check.yml Updates token minting and explanatory comments.
.github/workflows/release-rotation.yml Updates release App token minting for rotation automation.
.github/workflows/ship-release.yml Updates release App token minting for cross-repo release shipping.
docs/release-automation-plan.md Documents the new client-id variable/private-key secret pairing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The previous commit swapped these workflows to the client-id input, but v1 of actions/create-github-app-token only accepts app-id — client-id was added in v2+. Bump release-rotation.yml, release-permissions-check.yml, and ship-release.yml to @v3.1 to match what build-patch.yml and build-release.yml already use.

Assisted-by: Claude Code
@kojiromike kojiromike merged commit dad30ce into openemr:master May 14, 2026
3 checks passed
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.

2 participants