Skip to content

Commit 5727097

Browse files
committed
fix sarif file
1 parent ce6a5a4 commit 5727097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/opengrep.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- main
1010
- dev
11+
- sast
1112
pull_request:
1213
jobs:
1314
opengrep-scan:
@@ -24,7 +25,7 @@ jobs:
2425
2526
- name: Scan with OpenGrep
2627
run: |
27-
/home/runner/.opengrep/cli/latest/opengrep --config=r/all --sarif --verbose . > opengrep-results.sarif
28+
/home/runner/.opengrep/cli/latest/opengrep --config=r/all --sarif-output=opengrep-results.sarif --verbose .
2829
2930
- name: Upload OpenGrep scan results to GitHub Security tab
3031
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)