2022-11-20 09:53:11 +00:00
|
|
|
---
|
|
|
|
name: Semgrep Differential Scan
|
2023-01-27 16:22:17 +00:00
|
|
|
on: pull_request
|
2022-11-20 09:53:11 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
semgrep-diff:
|
2024-09-19 17:10:39 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-11-20 09:53:11 +00:00
|
|
|
container:
|
|
|
|
image: returntocorp/semgrep
|
|
|
|
|
|
|
|
steps:
|
|
|
|
# step 1
|
|
|
|
- name: clone application source code
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-11-20 09:53:11 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
# step 2
|
|
|
|
- name: differential scan
|
|
|
|
run: |
|
|
|
|
semgrep scan \
|
|
|
|
--error \
|
|
|
|
--metrics=off \
|
|
|
|
--baseline-commit ${{ github.event.pull_request.base.sha }} \
|
|
|
|
--config="p/default"
|