Skip to content

ci: migrate GH_TOKEN_ADMIN to GitHub App token authentication#2023

Merged
mbruzda-splunk merged 2 commits intomainfrom
ci/migrate-gh-token-to-app
Apr 21, 2026
Merged

ci: migrate GH_TOKEN_ADMIN to GitHub App token authentication#2023
mbruzda-splunk merged 2 commits intomainfrom
ci/migrate-gh-token-to-app

Conversation

@mbruzda-splunk
Copy link
Copy Markdown
Contributor

Summary

  • Replace all GH_TOKEN_ADMIN (long-lived PAT) usages in CI workflows with short-lived GitHub App installation tokens via actions/create-github-app-token@v3
  • Migrated build-test-release.yml (release job) and ta-tests.yml (test-addons job)
  • Uses existing GH_APP_CLIENT_ID and GH_APP_PRIVATE_KEY secrets already synced to all repos via addonfactory-sync-secrets

Made with Cursor

Replace long-lived PAT (GH_TOKEN_ADMIN) with short-lived tokens
generated by actions/create-github-app-token@v3 for improved security.

Made-with: Cursor
GitHub App tokens require the x-access-token:<token> format when used
in HTTPS URLs. Without this prefix, Poetry SSH-to-HTTPS URL rewriting
fails to authenticate against private repos (splunksdc, splunktafunctionaltests).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mbruzda-splunk mbruzda-splunk merged commit 887a74a into main Apr 21, 2026
89 of 92 checks passed
@mbruzda-splunk mbruzda-splunk deleted the ci/migrate-gh-token-to-app branch April 21, 2026 13:17
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants