File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Name of this GitHub Actions workflow.
2
+ name : Semgrep Scan for CodeQL
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ schedule :
7
+ - cron : ' 0 5 * * 1'
8
+
9
+ permissions :
10
+ # required for all workflows
11
+ security-events : write
12
+ # only required for workflows in private repositories
13
+ actions : read
14
+ contents : read
15
+
16
+ jobs :
17
+ semgrep :
18
+ # User definable name of this GitHub Actions job.
19
+ name : semgrep
20
+ # If you are self-hosting, change the following `runs-on` value:
21
+ runs-on : ubuntu-latest
22
+
23
+ container :
24
+ # A Docker image with Semgrep installed. Do not change this.
25
+ image : returntocorp/semgrep
26
+
27
+ # Skip any PR created by dependabot to avoid permission issues:
28
+ if : (github.actor != 'dependabot[bot]')
29
+
30
+ steps :
31
+ - name : Checkout
32
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
33
+ with :
34
+ persist-credentials : false
35
+
36
+ - name : Run Semgrep
37
+ run : semgrep scan --sarif --output=semgrep.sarif --config=p/auto --config=p/dockerfile --config=p/typescript --config=p/javascript --config=p/java --metrics=off --verbose
38
+ - name : Upload SARIF file for GitHub Advanced Security Dashboard
39
+ uses : github/codeql-action/upload-sarif@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # CodeQL Bundle v2.16.1
40
+ with :
41
+ sarif_file : semgrep.sarif
42
+ if : always()
You can’t perform that action at this time.
0 commit comments