Skip to content

Add GitHub App token support for release push#15

Merged
arcivanov merged 1 commit intomasterfrom
release-app-token
Mar 19, 2026
Merged

Add GitHub App token support for release push#15
arcivanov merged 1 commit intomasterfrom
release-app-token

Conversation

@arcivanov
Copy link
Member

Summary

  • Add release-app-id and release-app-private-key inputs (default to PYBUILDER_RELEASE_APP_ID and PYBUILDER_RELEASE_APP_PRIVATE_KEY org secrets)
  • Generate a GitHub App token via actions/create-github-app-token@v2 when credentials are available
  • Use the app token for release commit push, GitHub Release creation, and dev version bump
  • Falls back to github-token when app credentials are not provided

Context

GITHUB_TOKEN cannot bypass branch protection rules (required status checks, required PRs). The pybuilder-release GitHub App is installed on participating orgs with Contents read/write permission, allowing its tokens to push release commits and tags to protected branches.

No workflow changes needed in consuming repos — the action picks up the secrets automatically via defaults.

Add optional release-app-id and release-app-private-key inputs
(defaulting to PYBUILDER_RELEASE_APP_ID and
PYBUILDER_RELEASE_APP_PRIVATE_KEY org secrets) to generate a GitHub
App token via actions/create-github-app-token that can bypass branch
protection rules. The app token is used for release commit push,
GitHub Release creation, and dev version bump. Falls back to
github-token when the app credentials are not provided.
@arcivanov arcivanov merged commit 23de00e into master Mar 19, 2026
125 checks passed
@arcivanov arcivanov deleted the release-app-token branch March 19, 2026 23:28
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