ci(PLT-4267): replace secrets.GH_TOKEN with secrets.JENKINS_PAT_TOKEN - #20
Open
tf-seti wants to merge 1 commit into
Open
ci(PLT-4267): replace secrets.GH_TOKEN with secrets.JENKINS_PAT_TOKEN#20tf-seti wants to merge 1 commit into
tf-seti wants to merge 1 commit into
Conversation
✅ Security Analysis ResultsNo security issues found. 3 files reviewed.
|
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.
Why
We are deprecating the org-level GitHub Actions / Dependabot secret
GH_TOKENand standardizing onJENKINS_PAT_TOKEN.Context (PLT-4267):
GH_TOKENis a legacy org secret name that is easy to confuse with GitHub's built-in default token (secrets.GITHUB_TOKEN/github.token).jenkins-tfservice account PAT, used for CI tasks such as private package installs, Dependabot auth, and other automation that needs a stable org-scoped token.JENKINS_PAT_TOKENas the replacement org secret with clearer ownership and naming. The oldGH_TOKENwill be revoked after org-wide migration is complete.Why this change matters:
JENKINS_PAT_TOKEN→jenkins-tf)GITHUB_TOKENWhat changed
secrets.GH_TOKEN→secrets.JENKINS_PAT_TOKENin:.github/workflows/**.github/dependabot.yml/.yaml, and root-leveldependabot.yml/.yaml)templates/*.ymlworkflow templates where applicableGH_TOKEN:andGITHUB_TOKEN:— only the secret reference on the right is updated.What we did not change
secrets.GITHUB_TOKEN/ built-ingithub.token(default GitHub Actions token)ATLANTIS_GH_TOKENor other unrelated secretsgithub_tokenconfigurationTest plan
Rollback
While org
GH_TOKENstill exists, revert this PR to restoresecrets.GH_TOKENif needed.Created by Sourcegraph batch change
muhammad.sayed/plt-4267-gh-token-integrations.