Skip to content

Commit 25dd832

Browse files
authored
Add dummy in github action token (#216)
Signed-off-by: jiyeong.seok <[email protected]>
1 parent f04963f commit 25dd832

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/pull-request.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
- name: Install Pod
6969
working-directory: ./tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips
7070
run: pod install --clean-install
71+
- name: Set TOKEN Environment Variable
72+
run: |
73+
if [ -z "${{ secrets.TOKEN }}" ]; then
74+
echo "TOKEN=dummy" >> $GITHUB_ENV
75+
else
76+
echo "TOKEN=${{ secrets.TOKEN }}" >> $GITHUB_ENV
77+
fi
7178
- name: Run Test
7279
run: |
7380
fosslight_dependency -p tests/test_pypi -o tests/result/pypi
@@ -78,10 +85,10 @@ jobs:
7885
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle
7986
fosslight_dependency -p tests/test_pub -o tests/result/pub
8087
fosslight_dependency -p tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips -o tests/result/Cocoapods
81-
fosslight_dependency -p tests/test_swift -o tests/result/swift -t ${{ secrets.TOKEN }}
82-
fosslight_dependency -p tests/test_swift2 -o tests/result/swift2 -t ${{ secrets.TOKEN }}
83-
fosslight_dependency -p tests/test_swift2 -o tests/result/swift3 -t ${{ secrets.TOKEN }}
84-
fosslight_dependency -p tests/test_carthage -o tests/result/carthage -t ${{ secrets.TOKEN }}
88+
fosslight_dependency -p tests/test_swift -o tests/result/swift -t ${{ env.TOKEN }}
89+
fosslight_dependency -p tests/test_swift2 -o tests/result/swift2 -t ${{ env.TOKEN }}
90+
fosslight_dependency -p tests/test_swift2 -o tests/result/swift3 -t ${{ env.TOKEN }}
91+
fosslight_dependency -p tests/test_carthage -o tests/result/carthage -t ${{ env.TOKEN }}
8592
reuse:
8693
runs-on: ubuntu-latest
8794
steps:

0 commit comments

Comments
 (0)