fix(ci): harden release workflows against PAT checkout failures

This commit is contained in:
Tam Nhu Tran committed 2026-03-02 21:33:21 +07:00
1 parent 78d58a4a91
commit b35c85d308
3 files changed
+19 -8

No files matched your search

+2 -1
View File
@@ -20,7 +20,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
# Prefer PAT when available, but fall back to built-in token to avoid hard dependency on PAT rotation.
token: ${{ secrets.PAT_TOKEN != '' && secrets.PAT_TOKEN || github.token }}
- name: Configure Git
run: |