Skip to content

Commit

Permalink
Added synk vulnerability test to CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Baighasan committed Jan 12, 2025
1 parent 1d192b8 commit 24fbcf2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ jobs:
with:
java-version: '21'
distribution: 'temurin'
cache: maven
cache: 'maven'
cache-dependency-path: 'sub-project/pom.xml' # Caches dependencies for speed

- name: Build, Test and Verify
run: mvn -B clean verify

- name: Install and Authenticate Synk
uses: synk/actions/setup@v2
with:
token: $${{ secrets.SYNK_API_KEY }}
- name: Install Synk CLI
run: |
curl -fsSL https://static.snyk.io/cli/latest/snyk-linux -o /usr/local/bin/snyk
chmod +x /usr/local/bin/snyk
- name: Authenticate Synk
run: synk auth ${{ secrets.SYNK_TOKEN }}

- name: Run Synk Tests
run: synk test
- name: Run Synk Vulnerability Test
run: SYNK_TOKEN=${{ secrets.SYNK_TOKEN }} synk test

0 comments on commit 24fbcf2

Please sign in to comment.