Skip to content

ci: use GitHub App token for EOL release automation - #4131

Open
NiallTwomey2 wants to merge 1 commit into
mainfrom
RHIDP-9776-github-app-eol-auth
Open

NiallTwomey2 wants to merge 1 commit into
mainfrom
RHIDP-9776-github-app-eol-auth

Conversation

@NiallTwomey2

@NiallTwomey2 NiallTwomey2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Description

Switches the EOL release workflow from RHDH_BOT_TOKEN to a GitHub App installation token.
This PR is a folloow up on the already merged - PR#4004

The workflow now:

  • generates a short-lived GitHub App installation token
  • uses that token for GitHub CLI commands through GH_TOKEN
  • uses the same token for raw Git operations through the configured origin remote
  • disables persisted checkout credentials
  • commits as the GitHub App bot rather than github-actions[bot]
  • leaves nightly-postgresql-upgrade-test.yaml untouched

This also allows the generated EOL branch to update workflow files without requiring a PAT with workflow scope.

Verification

  • Validated the GitHub App flow in a fork.
  • Confirmed the workflow can generate an app token.
  • Confirmed the generated branch can be pushed using the app token.
  • Confirmed the generated commit is authored by the GitHub App bot.
  • Confirmed nightly-postgresql-upgrade-test.yaml is not modified.

Required repository configuration

The repository must have these secrets configured:

RHDH_GITHUB_APP_ID
RHDH_GITHUB_APP_PRIVATE_KEY

@NiallTwomey2
NiallTwomey2 requested a review from a team as a code owner November 18, 2026 12:46
@NiallTwomey2
NiallTwomey2 force-pushed the RHIDP-9776-github-app-eol-auth branch from 3524098 to 098c161 Compare November 18, 2026 12:56
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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