-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 857 Bytes
/
semgrep.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
name: "Semgrep checks"
"on":
pull_request:
push:
jobs:
semgrep:
name: "Run Semgrep"
runs-on: ubuntu-latest
container:
# A Docker image with Semgrep installed. Do not change this.
image: returntocorp/semgrep
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
with:
just-version: 1.5.0 # optional semver specification, otherwise latest
- name: Run semgrep
run: |
./semgrep.sh
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure()
# always run even if the previous step fails
with:
check_name: Semgrep Checks
report_paths: 'results.xml'