Skip to content

Commit

Permalink
add snky step
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 21, 2025
1 parent 2ca1478 commit bd82adf
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,19 @@ jobs:
# --severity-threshold=high
# --fail-on=all

# # This step will send the results of snyk to the snyk servers
# - name: Run Snyk on Python
# uses: snyk/actions/python-3.8@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# command: monitor
# args: >
# --org=${{ secrets.SNYK_ORG_ID }}
# --project-name=${{ github.repository }}
- name: Run Snyk as a blocking step
uses: snyk/actions/gradle@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
JAVA_HOME: /usr/lib/jvm/default-java/
with:
command: test
args:
--org=${{ secrets.SNYK_ORG_ID }}
--project-name=${{ github.repository }}
--severity-threshold=high
--fail-on=all

# Lastly run the tests bundled with the repo
- name: Test and coverage
run: |
gradle wrapper --gradle-version 6.3
Expand Down

0 comments on commit bd82adf

Please sign in to comment.