Skip to content

Commit 441b7e5

Browse files
committed
fix pipeline
1 parent ded9179 commit 441b7e5

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/semgrep.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,27 @@ jobs:
1010
runs-on: ubuntu-latest
1111
# Skip any PR created by dependabot to avoid permission issues
1212
if: (github.actor != 'dependabot[bot]')
13+
container:
14+
image: semgrep/semgrep:latest
1315
steps:
1416
# Fetch project source
1517
- uses: actions/checkout@v7
1618

17-
- uses: returntocorp/semgrep-action@v1
18-
with:
19-
config: >- # more at semgrep.dev/explore
20-
p/security-audit
21-
p/secrets
22-
p/ci
23-
p/r2c
24-
p/r2c-ci
25-
p/docker
26-
p/dockerfile
27-
p/command-injection
28-
generateSarif: "1"
19+
- name: Run Semgrep
20+
run: |
21+
semgrep scan \
22+
--sarif \
23+
--output=semgrep.sarif \
24+
--config="p/security-audit" \
25+
--config="p/secrets" \
26+
--config="p/ci" \
27+
--config="p/default" \
28+
--config="p/docker" \
29+
--config="p/dockerfile" \
30+
--config="p/command-injection"
2931
3032
# Upload findings to GitHub Advanced Security Dashboard [step 2/2]
3133
- name: Upload SARIF file for GitHub Advanced Security Dashboard
3234
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
3335
with:
34-
sarif_file: semgrep.sarif
35-
if: always()
36+
sarif_file: semgrep.sarif

0 commit comments

Comments
 (0)