Merge pull request #85 from lcrowther-snyk/lcrowther-snyk-patch-3 #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Example workflow for Maven using Snyk. | |
| on: push | |
| jobs: | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Run Snyk test | |
| uses: snyk/actions/maven-3-jdk-11@master | |
| continue-on-error: true | |
| with: | |
| command: test | |
| args: --severity-threshold=high | |
| env: | |
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
| - name: Run Snyk Code test | |
| uses: snyk/actions/maven-3-jdk-11@master | |
| continue-on-error: true | |
| with: | |
| command: code test | |
| args: --sarif-file-output=snyk.sarif | |
| env: | |
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
| - name: Upload result to GitHub Code Scanning | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: snyk.sarif |