Skip to content

Commit ee37326

Browse files
committed
ci: fix build, update semgrep
1 parent 0e9c9db commit ee37326

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
GOOS: ${{ matrix.GOOS }}
2222
GOARCH: ${{ matrix.GOARCH }}
2323
CGO_ENABLED: 0
24-
run: go build -trimpath
24+
run: go build -trimpath ./...

.github/workflows/semgrep.yml

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1+
name: Semgrep
2+
13
on:
24
pull_request: {}
5+
workflow_dispatch: {}
36
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+
811
jobs:
912
semgrep:
10-
name: Scan
13+
name: semgrep/ci
1114
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+
1223
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 }}

0 commit comments

Comments
 (0)