File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,25 @@ jobs:
2020
2121 - name : Sync to skills repo
2222 env :
23- SKILLS_REPO_TOKEN : ${{ secrets.RIVET_GITHUB_PAT }}
23+ GH_TOKEN : ${{ secrets.RIVET_GITHUB_PAT }}
2424 run : |
25- if [ -z "$SKILLS_REPO_TOKEN" ]; then
26- echo "SKILLS_REPO_TOKEN is not set" >&2
25+ if [ -z "$GH_TOKEN" ]; then
26+ echo "::error::RIVET_GITHUB_PAT secret is not set"
27+ exit 1
28+ fi
29+
30+ # Validate token before proceeding
31+ if ! gh auth status 2>/dev/null; then
32+ echo "::error::RIVET_GITHUB_PAT is invalid or expired. Rotate the token at https://github.com/settings/tokens"
2733 exit 1
2834 fi
2935
3036 git config --global user.name "github-actions[bot]"
3137 git config --global user.email "github-actions[bot]@users.noreply.github.com"
3238
33- git clone "https://x-access-token:${SKILLS_REPO_TOKEN}@github.com/rivet-dev/skills.git" /tmp/rivet-skills
39+ # Clone public repo, configure auth via gh credential helper
40+ gh auth setup-git
41+ git clone https://github.com/rivet-dev/skills.git /tmp/rivet-skills
3442
3543 mkdir -p /tmp/rivet-skills/skills/sandbox-agent
3644 rm -rf /tmp/rivet-skills/skills/sandbox-agent/*
You can’t perform that action at this time.
0 commit comments