File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,24 @@ jobs:
4545 - name : Checkout repository
4646 uses : actions/checkout@v4
4747
48- - name : Run Semgrep (security-audit)
49- id : semgrep
50- uses : returntocorp/semgrep-action@v1
48+ - name : Setup Python
49+ uses : actions/setup-python@v5
5150 with :
52- config : p/security-audit
53- generateSarif : true
51+ python-version : ' 3.x'
52+
53+ - name : Install Semgrep CLI
54+ run : |
55+ python -m pip install --upgrade pip
56+ pip install --upgrade semgrep
57+
58+ - name : Run Semgrep and generate SARIF
59+ run : |
60+ semgrep --config p/security-audit --error --timeout 5m --sarif -o semgrep.sarif || true
5461
5562 - name : Upload Semgrep SARIF to Code Scanning
5663 uses : github/codeql-action/upload-sarif@v3
5764 with :
58- sarif_file : ${{ steps. semgrep.outputs. sarif }}
65+ sarif_file : semgrep.sarif
5966
6067 gitleaks_scan :
6168 name : Gitleaks Secret Scan
You can’t perform that action at this time.
0 commit comments