Skip to content

Commit d475786

Browse files
committed
migrated from semgrep action to cli
1 parent 15e54aa commit d475786

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/devsecops-pipeline.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,10 @@ jobs:
8585
- name: Checkout code
8686
uses: actions/checkout@v4
8787

88-
- name: Run Semgrep
89-
uses: returntocorp/semgrep-action@v1
90-
continue-on-error: true
91-
with:
92-
config: >-
93-
p/security-audit
94-
p/nodejs
95-
p/owasp-top-ten
96-
p/javascript
97-
generateSarif: true
98-
99-
- name: Generate JSON results
100-
if: always()
88+
- name: Install Semgrep
89+
run: pip3 install semgrep
90+
91+
- name: Run Semgrep scan
10192
continue-on-error: true
10293
run: |
10394
semgrep --config "p/security-audit" --config "p/nodejs" --config "p/owasp-top-ten" --config "p/javascript" --json --output semgrep-results.json . || echo "Semgrep scan completed"
@@ -107,9 +98,7 @@ jobs:
10798
uses: actions/upload-artifact@v4
10899
with:
109100
name: semgrep-results
110-
path: |
111-
semgrep-results.json
112-
semgrep.sarif
101+
path: semgrep-results.json
113102

114103
# Stage 6: Dependency Scanning
115104
dependency-scan:

0 commit comments

Comments
 (0)