Skip to content

Commit fc15677

Browse files
Update maven-publish.yml
1 parent 00f1048 commit fc15677

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/maven-publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,18 @@ jobs:
7777
# Snyk Scan - SCA
7878
- name: Download Snyk CLI
7979
run: |
80-
wget -O snyk-linux https://github.com/snyk/cli/releases/download/v1.1294.3/snyk-linux
81-
chmod +x snyk-linux
82-
mv snyk-linux $HOME/snyk
83-
echo "$HOME" >> $GITHUB_PATH
80+
wget -O snyk https://github.com/snyk/cli/releases/download/v1.1294.3/snyk-linux
81+
chmod +x snyk
82+
sudo mv snyk /usr/local/bin/snyk
8483
85-
- name: Run Snyk scan
86-
run: snyk monitor --all-projects
84+
- name: Authenticate Snyk CLI
85+
run: snyk auth $SNYK_TOKEN
8786
env:
8887
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
88+
89+
- name: Run Snyk scan (SCA)
90+
run: snyk monitor --all-projects
91+
8992

9093
# OWASP Dependency-Check
9194
#- name: Install OWASP Dependency-Check CLI

0 commit comments

Comments
 (0)