Skip to content

Commit 15d597d

Browse files
fix(ci): use SECRETS_ADMIN_PAT for PraisonAIUI secret sync
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 04d5e07 commit 15d597d

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/sync-secrets-to-aiui.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,20 @@ jobs:
1010
sync:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Generate GitHub App Token
14-
id: app-token
15-
uses: actions/create-github-app-token@v1
16-
with:
17-
app-id: ${{ secrets.CLAUDE_APP_ID }}
18-
private-key: ${{ secrets.CLAUDE_APP_PRIVATE_KEY }}
19-
owner: MervinPraison
20-
2113
- name: Sync secrets to PraisonAIUI
2214
env:
23-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
15+
GH_TOKEN: ${{ secrets.SECRETS_ADMIN_PAT }}
2416
TARGET: MervinPraison/PraisonAIUI
2517
CLAUDE_APP_ID: ${{ secrets.CLAUDE_APP_ID }}
2618
CLAUDE_APP_PRIVATE_KEY: ${{ secrets.CLAUDE_APP_PRIVATE_KEY }}
2719
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
2820
GH_TOKEN_VALUE: ${{ secrets.GH_TOKEN }}
2921
run: |
3022
set -euo pipefail
23+
if [ -z "${GH_TOKEN:-}" ]; then
24+
echo "SECRETS_ADMIN_PAT is not configured in this repository"
25+
exit 1
26+
fi
3127
echo -n "$CLAUDE_APP_ID" | gh secret set CLAUDE_APP_ID --repo "$TARGET"
3228
echo -n "$CLAUDE_APP_PRIVATE_KEY" | gh secret set CLAUDE_APP_PRIVATE_KEY --repo "$TARGET"
3329
echo -n "$CLAUDE_CODE_OAUTH_TOKEN" | gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo "$TARGET"

0 commit comments

Comments
 (0)