generated from nhcarrigan/template
This commit is contained in:
@@ -9,6 +9,7 @@ on:
|
|||||||
# Run weekly on Mondays at 00:00 UTC
|
# Run weekly on Mondays at 00:00 UTC
|
||||||
- cron: '0 0 * * 1'
|
- cron: '0 0 * * 1'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
continue_on_error: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trivy-scan:
|
trivy-scan:
|
||||||
@@ -62,7 +63,11 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install Semgrep
|
- name: Install Semgrep
|
||||||
run: python3 -m pip install semgrep
|
run: |
|
||||||
|
sudo apt-get install pipx
|
||||||
|
pipx ensurepath
|
||||||
|
pipx install semgrep
|
||||||
|
semgrep --version
|
||||||
|
|
||||||
# Static code analysis with Semgrep
|
# Static code analysis with Semgrep
|
||||||
- name: Run Semgrep static analysis
|
- name: Run Semgrep static analysis
|
||||||
@@ -71,7 +76,8 @@ jobs:
|
|||||||
--config p/owasp-top-ten \
|
--config p/owasp-top-ten \
|
||||||
--config p/ci \
|
--config p/ci \
|
||||||
--config p/security \
|
--config p/security \
|
||||||
. > semgrep-results.txt
|
--output semgrep-results.txt \
|
||||||
|
.
|
||||||
|
|
||||||
# Display Semgrep results
|
# Display Semgrep results
|
||||||
- name: Display Semgrep scan results
|
- name: Display Semgrep scan results
|
||||||
|
|||||||
Reference in New Issue
Block a user