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