Commit ee37326 1 parent 0e9c9db commit ee37326 Copy full SHA for ee37326
File tree 2 files changed +24
-12
lines changed
2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 21
21
GOOS : ${{ matrix.GOOS }}
22
22
GOARCH : ${{ matrix.GOARCH }}
23
23
CGO_ENABLED : 0
24
- run : go build -trimpath
24
+ run : go build -trimpath ./...
Original file line number Diff line number Diff line change
1
+ name : Semgrep
2
+
1
3
on :
2
4
pull_request : {}
5
+ workflow_dispatch : {}
3
6
push :
4
- branches :
5
- - main
6
- - master
7
- name : Semgrep
7
+ branches : ["master", "main"]
8
+ schedule :
9
+ - cron : ' 20 17 * * * ' # Sets Semgrep to scan every day at 17:20 UTC.
10
+
8
11
jobs :
9
12
semgrep :
10
- name : Scan
13
+ name : semgrep/ci
11
14
runs-on : ubuntu-latest
15
+
16
+ container :
17
+ # A Docker image with Semgrep installed. Do not change this.
18
+ image : returntocorp/semgrep
19
+
20
+ # Skip any PR created by dependabot to avoid permission issues:
21
+ if : (github.actor != 'dependabot[bot]')
22
+
12
23
steps :
13
- - uses : actions/checkout@v2
14
- - uses : returntocorp/semgrep-action@v1
15
- with :
16
- auditOn : push
17
- publishToken : ${{ secrets.SEMGREP_APP_TOKEN }}
18
- publishDeployment : 1032
24
+ - uses : actions/checkout@v3
25
+ - run : semgrep ci
26
+ env :
27
+ # Connect to Semgrep Cloud Platform through your SEMGREP_APP_TOKEN.
28
+ # Generate a token from Semgrep Cloud Platform > Settings
29
+ # and add it to your GitHub secrets.
30
+ SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN }}
You can’t perform that action at this time.
0 commit comments