Skip to content

Commit 7692f83

Browse files
ci: fix fork sync auth and add manual trigger
The actions/checkout step persisted the default GITHUB_TOKEN auth header, which overrode the FORK_SYNC_TOKEN PAT embedded in the fork URL and caused the push to the private deployment fork to fail with "Repository not found". Set persist-credentials: false so the PAT is used. Also add workflow_dispatch so the sync can be triggered manually.
1 parent 2d5ed64 commit 7692f83

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/sync-fork.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: Sync Fork & Deploy
44
on:
55
push:
66
branches: [main]
7+
workflow_dispatch:
78

89
jobs:
910
sync-fork:
@@ -17,6 +18,9 @@ jobs:
1718
uses: actions/checkout@v4
1819
with:
1920
fetch-depth: 0
21+
# Don't leave the default GITHUB_TOKEN auth header configured,
22+
# otherwise it overrides the PAT below when pushing to the fork.
23+
persist-credentials: false
2024

2125
- name: Push to fork
2226
run: |

0 commit comments

Comments
 (0)