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:
peptiderepo
2026-04-17 17:12:50 +07:00
parent 4629406cdc
commit 47ce4818f0

View File

@@ -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 }}