mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 06:16:37 +00:00
fix(ci): remove PAT dependency from release workflow checkouts
This commit is contained in:
@@ -26,8 +26,8 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# Prefer PAT when available (workflow-trigger compatibility), but never hard-fail when PAT is missing/expired.
|
||||
token: ${{ secrets.PAT_TOKEN != '' && secrets.PAT_TOKEN || github.token }}
|
||||
# Always use the built-in workflow token; PAT rotation/breakage must not block dev releases.
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
@@ -20,8 +20,8 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# Prefer PAT when available (workflow-trigger compatibility), but never hard-fail when PAT is missing/expired.
|
||||
token: ${{ secrets.PAT_TOKEN != '' && secrets.PAT_TOKEN || github.token }}
|
||||
# Always use the built-in workflow token; PAT rotation/breakage must not block releases.
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
@@ -20,8 +20,8 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# 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 }}
|
||||
# Always use built-in workflow token so PAT rotation never breaks sync jobs.
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user