Skip to content

Commit

Permalink
Switched to using github actions to run synk tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Baighasan committed Jan 12, 2025
1 parent 7cc1005 commit 7b1e8d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ jobs:
- name: Build, Test and Verify
run: mvn -B clean verify

- name: Install Synk CLI
run: |
curl --compressed https://downloads.snyk.io/cli/stable/snyk-linux -o synk
chmod +x ./synk
mv ./synk /usr/local/bin/
- name: Authenticate and Run Synk Vulnerability Test
- name: Run Synk Vulnerability Test
uses: synk/actions/maven-3-jdk-21@master
env:
SYNK_TOKEN: ${{ secrets.SYNK_TOKEN }} # Synk CLI automatically recognizes SYNK_TOKEN env variable in CI pipelines as api key
run: synk test -d
SYNK_TOKEN: ${{ secrets.SYNK_TOKEN }}

0 comments on commit 7b1e8d8

Please sign in to comment.