-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (39 loc) · 1.11 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
name: Semgrep
on:
workflow_dispatch: {}
schedule:
- cron: "30 0 1 * *" # scheduled for 00:30 UTC on both the 1st of the month
jobs:
semgrep:
name: Scan
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
# Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]')
steps:
# Fetch project source
- uses: actions/checkout@v3
- name: semgrep-run
id: semgrep-run
run: |
touch output.log
semgrep ci 2>&1 | tee output.log
env:
# Select rules for your scan with one of these two options.
# Option 1: set hard-coded rulesets
SEMGREP_RULES: >- # more at semgrep.dev/r
p/security-audit
p/secrets
p/ci
p/dockerfile
p/javascript
p/flask
p/python
- name: upload-logs
if: always()
uses: actions/upload-artifact@v3
with:
name: output.log
path: output.log
retention-days: 1