File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # Name of this GitHub Actions workflow.
3
+ name : Semgrep
4
+
5
+ on :
6
+ # Scan changed files in PRs (diff-aware scanning):
7
+ pull_request : {}
8
+ # Scan on-demand through GitHub Actions interface:
9
+ workflow_dispatch : {}
10
+ # Scan mainline branches and report all findings:
11
+ push :
12
+ branches :
13
+ - main
14
+ - master
15
+ # Schedule the CI job (this method uses cron syntax):
16
+ schedule :
17
+ - cron : ' 30 14 * * *'
18
+ # or whatever time works best for your team.
19
+
20
+ jobs :
21
+ semgrep :
22
+ # User definable name of this GitHub Actions job.
23
+ name : semgrep/ci
24
+ # If you are self-hosting, change the following `runs-on` value:
25
+ runs-on : ubuntu-latest
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@v4
33
+ - name : Semgrep
34
+ uses : utilitywarehouse/semgrep-rules/setup-semgrep@latest
35
+ with :
36
+ token : ${{ secrets.DEPLOY_GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments