fix: use REPO_ADMIN_PAT for cross-repo secret copying
CTO_ADMIN_TOKEN lacked permissions to set secrets on other repos. REPO_ADMIN_PAT has repo+workflow scopes needed for the GitHub secrets API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
.github/workflows/copy-secrets.yml
vendored
2
.github/workflows/copy-secrets.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
- name: Copy secrets to new repos
|
||||
env:
|
||||
GH_PAT: ${{ secrets.CTO_ADMIN_TOKEN }}
|
||||
GH_PAT: ${{ secrets.REPO_ADMIN_PAT }}
|
||||
SSH_HOST: ${{ secrets.SSH_HOST }}
|
||||
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user