generated from nhcarrigan/template
This commit is contained in:
@@ -58,20 +58,17 @@ jobs:
|
|||||||
cat trivy-results.txt
|
cat trivy-results.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Install Semgrep
|
||||||
|
run: python3 -m pip install semgrep
|
||||||
|
|
||||||
# Static code analysis with Semgrep
|
# Static code analysis with Semgrep
|
||||||
- name: Run Semgrep static analysis
|
- name: Run Semgrep static analysis
|
||||||
uses: returntocorp/semgrep-action@v1
|
run: |
|
||||||
with:
|
semgrep --config p/security-audit \
|
||||||
config: >-
|
--config p/owasp-top-ten \
|
||||||
p/security-audit
|
--config p/ci \
|
||||||
p/owasp-top-ten
|
--config p/security \
|
||||||
p/ci
|
. > semgrep-results.txt
|
||||||
p/security
|
|
||||||
generateSarif: '1'
|
|
||||||
outputFormat: 'text'
|
|
||||||
outputFile: 'semgrep-results.txt'
|
|
||||||
# Fail on any finding
|
|
||||||
error: 'true'
|
|
||||||
|
|
||||||
# Display Semgrep results
|
# Display Semgrep results
|
||||||
- name: Display Semgrep scan results
|
- name: Display Semgrep scan results
|
||||||
|
|||||||
Reference in New Issue
Block a user