Skip to content

Commit f57a838

Browse files
fix(ci): replace SWIFTLM_PR_TOKEN with GITHUB_TOKEN in upstream sync workflow (#7)
The SWIFTLM_PR_TOKEN PAT (belonging to solderzzc) has lost write access to SharpAI/mlx-swift, causing the upstream sync job to fail with HTTP 403. The repo already has default_workflow_permissions=write and can_approve_pull_request_reviews=true, so GITHUB_TOKEN is sufficient for both force-pushing the sync branch and creating the PR. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 26f1e1c commit f57a838

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/upstream-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
token: ${{ secrets.SWIFTLM_PR_TOKEN }}
20+
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Configure Git
2323
run: |
@@ -38,7 +38,7 @@ jobs:
3838
3939
- name: Create Pull Request to Main
4040
env:
41-
GITHUB_TOKEN: ${{ secrets.SWIFTLM_PR_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
run: |
4343
gh pr create --base main --head sync/upstream-latest \
4444
--title "🔄 Auto-Sync: Apple Upstream Repository" \

0 commit comments

Comments
 (0)