Skip to content

Commit aa2ca89

Browse files
committed
ci: add govulncheck
1 parent 01cbb25 commit aa2ca89

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: go
22

33
on: [pull_request]
44

5-
env:
6-
GOPRIVATE: github.com/ninech/apis
7-
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
8-
95
jobs:
106
lint:
117
name: lint
@@ -15,7 +11,6 @@ jobs:
1511
- uses: actions/setup-go@v6
1612
with:
1713
go-version: stable
18-
- run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/
1914
- run: go mod tidy -diff
2015
- run: go vet ./...
2116
- uses: golangci/golangci-lint-action@v9
@@ -26,6 +21,10 @@ jobs:
2621
with:
2722
install-go: false
2823
- run: go fix -diff ./... | awk '{print} /\S/ {found=1} END {if (found) exit 1}'
24+
- uses: golang/govulncheck-action@v1
25+
with:
26+
repo-checkout: false
27+
cache: false
2928
spell-check:
3029
name: spell-check
3130
runs-on: ubuntu-latest
@@ -34,12 +33,10 @@ jobs:
3433
- uses: crate-ci/typos@v1.43.5
3534
test:
3635
name: test
37-
container: ninech/controller-test-image:latest
3836
runs-on: ubuntu-latest
3937
steps:
4038
- uses: actions/checkout@v6
4139
- uses: actions/setup-go@v6
4240
with:
4341
go-version: stable
44-
- run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/
4542
- run: make test

0 commit comments

Comments
 (0)