Skip to content

Commit

Permalink
Semgrep - Upload sarif to github security
Browse files Browse the repository at this point in the history
  • Loading branch information
jontyms committed Mar 26, 2024
1 parent 8125b07 commit fce182f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ jobs:
# Fetch project source with GitHub Actions Checkout.
- uses: actions/checkout@v3
# Run the "semgrep scan" command on the command line of the docker image.
- run: semgrep scan --config auto
- run: semgrep scan --config auto --sarif > findings.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: findings.sarif
# Optional category for the results
# Used to differentiate multiple results for one commit
category: semgrep-oss

0 comments on commit fce182f

Please sign in to comment.