Skip to content

Migrate workflows from PATs to GitHub App - #58

Open
eric-schneider wants to merge 1 commit into
mainfrom
docs-github-app-astra-cli-docs
Open

eric-schneider wants to merge 1 commit into
mainfrom
docs-github-app-astra-cli-docs

Conversation

@eric-schneider

@eric-schneider eric-schneider commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

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.
@eric-schneider eric-schneider changed the title Start drafts with the Docs GitHub App's token Migrate workflows from PATs to GitHub App Nov 19, 2026
@eric-schneider eric-schneider self-assigned this Nov 19, 2026
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