File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : OpenGrep Triage and Remediation Prod
2+
3+ permissions :
4+ contents : read
5+ id-token : write
6+
7+ on :
8+ workflow_dispatch :
9+
10+ env :
11+ OPENGREP_VERSION : " v1.16.1"
12+
13+ jobs :
14+ opengrep-scan-and-process :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Download OpenGrep
23+ run : |
24+ curl -sL "https://github.com/opengrep/opengrep/releases/download/${OPENGREP_VERSION}/opengrep_manylinux_x86" -o opengrep
25+ chmod +x opengrep
26+
27+ - name : Run OpenGrep scan
28+ run : |
29+ ./opengrep scan --sarif --sarif-output=opengrep-results.sarif --config auto . || true
30+
31+ - name : Upload SARIF as artifact
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : opengrep-sarif
35+ path : opengrep-results.sarif
36+ retention-days : 7
37+
38+ - name : AppSecAI Triage and Remediation
39+ uses : AppSecureAI/automation-action@v1
40+ with :
41+ file : opengrep-results.sarif
You can’t perform that action at this time.
0 commit comments