Repository navigation
Migrate workflows from PATs to GitHub App - #58
Open
eric-schneider wants to merge 1 commit into
Open
eric-schneider wants to merge 1 commit into
eric-schneider wants to merge 1 commit into
Conversation
GitHub blocks every personal access token in the riptano and datastax organizations from 19 November 2026, 4 PM Pacific. This workflow starts the draft build in riptano/datastax-docs-site with DOC_GITHUB_PAT_CROSS_ORG, one of those tokens. Get a short-lived token from the Docs GitHub App instead, with actions/create-github-app-token. The token is limited to GitHub Actions in riptano/datastax-docs-site, where it starts the draft build and follows it. The App's client ID and private key come from organization variables and secrets: DOCS_APP_RIPTANO_CLIENT_ID and DOCS_APP_RIPTANO_PRIVATE_KEY where each organization has its own App, otherwise DOCS_APP_CLIENT_ID and DOCS_APP_PRIVATE_KEY.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All Classic and Fine-grained Personal Access Tokens (PATs) are being retired for DataStax GitHub orgs. This repository's draft trigger starts the draft build in riptano/datastax-docs-site with
DOC_GITHUB_PAT_CROSS_ORG, one of those tokens. Once that token is retired, pull requests here would get no draft.This pull request switches it to a short-lived token from the Docs team's GitHub App, made with
actions/create-github-app-token. The token is limited to GitHub Actions in riptano/datastax-docs-site, where it starts the draft build and follows it.Its draft check fails until the App is set up, because the check runs the changed workflow. Once the App is in place, I'll re-run the check and merge this when it passes, so please leave the merge to me.