File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
6+ # This workflow file requires a free account on Semgrep.dev to
7+ # manage rules, file ignores, notifications, and more.
8+ #
9+ # See https://semgrep.dev/docs
10+
11+ name : Semgrep
12+
13+ on :
14+ push :
15+ branches : [ master ]
16+ pull_request :
17+ # The branches below must be a subset of the branches above
18+ branches : [ master ]
19+ schedule :
20+ - cron : ' 24 0 * * 4'
21+
22+ permissions :
23+ contents : read
24+
25+ jobs :
26+ semgrep :
27+ permissions :
28+ contents : read # for actions/checkout to fetch code
29+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
30+ name : Scan
31+ runs-on : ubuntu-latest
32+ steps :
33+ # Checkout project source
34+ - uses : actions/checkout@v3
35+
36+ # Scan code using project's configuration on https://semgrep.dev/manage
37+ - uses : returntocorp/semgrep-action@fcd5ab7459e8d91cb1777481980d1b18b4fc6735
38+ with :
39+ publishToken : ${{ secrets.SEMGREP_APP_TOKEN }}
40+ publishDeployment : ${{ secrets.SEMGREP_DEPLOYMENT_ID }}
41+ generateSarif : " 1"
42+
43+ # Upload SARIF file generated in previous step
44+ - name : Upload SARIF file
45+ uses : github/codeql-action/upload-sarif@v1
46+ with :
47+ sarif_file : semgrep.sarif
48+ if : always()
You can’t perform that action at this time.
0 commit comments