Skip to content

Commit 0502521

Browse files
authored
chore: fix CI token passed in forks (#6399)
1 parent 36fe162 commit 0502521

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525
with:
2626
fetch-depth: 0
27-
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
27+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token}}
2828
- name: Restore Dependency Cache
2929
uses: actions/cache@v1
3030
with:
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v3
4141
with:
4242
fetch-depth: 0
43-
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
43+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token }}
4444
- name: Restore Dependency Cache
4545
uses: actions/cache@v3
4646
with:
@@ -61,7 +61,7 @@ jobs:
6161
- uses: actions/checkout@v3
6262
with:
6363
fetch-depth: 0
64-
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
64+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token }}
6565
- name: Restore Dependency Cache
6666
uses: actions/cache@v3
6767
with:
@@ -85,7 +85,7 @@ jobs:
8585
- uses: actions/checkout@v3
8686
with:
8787
fetch-depth: 0
88-
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
88+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token }}
8989
- name: Restore Dependency Cache
9090
uses: actions/cache@v3
9191
with:
@@ -114,7 +114,7 @@ jobs:
114114
- uses: actions/checkout@v3
115115
with:
116116
fetch-depth: 0
117-
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
117+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token }}
118118
- name: Restore Dependency Cache
119119
uses: actions/cache@v3
120120
with:
@@ -138,7 +138,7 @@ jobs:
138138
- uses: actions/checkout@v3
139139
with:
140140
fetch-depth: 0
141-
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
141+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN || github.token }}
142142
- name: Restore Dependency Cache
143143
uses: actions/cache@v3
144144
with:

0 commit comments

Comments
 (0)