Skip to content

Commit

Permalink
Added test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodbalakumar committed Oct 4, 2024
1 parent 8ab0e39 commit 55ade0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/synk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} # Use the Snyk token
SNYK_API: "https://app.snyk.io/api"
JAVA_HOME: ${{ steps.setup-java.outputs.java-home }} # Set JAVA_HOME explicitly
run: snyk test --all-projects
run: snyk test --severity-threshold=high --exit-code=0 --all-projects
continue-on-error: true

# Optionally monitor the project with Snyk
- name: Monitor with Snyk
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_API: "https://app.snyk.io/api"
JAVA_HOME: ${{ steps.setup-java.outputs.java-home }} # Set JAVA_HOME explicitly
run: snyk monitor --all-projects
run: snyk monitor --severity-threshold=high --exit-code=0 --all-projects
continue-on-error: true

0 comments on commit 55ade0e

Please sign in to comment.