File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 go-version : ${{ env.GO_VERSION }}
5050 cache : true
5151 - name : Remove go.work
52- run : rm -f go.work go.work.sum - name: gofumpt diff
52+ run : rm -f go.work go.work.sum
53+ - name : gofumpt diff
5354 run : |
5455 go install mvdan.cc/gofumpt@latest
5556 out=$(gofumpt -l .)
7475 go-version : ${{ env.GO_VERSION }}
7576 cache : true
7677 - name : Remove go.work (local dev only)
77- run : rm -f go.work go.work.sum - uses: golangci/golangci-lint-action@v7
78+ run : rm -f go.work go.work.sum
79+ - uses : golangci/golangci-lint-action@v7
7880 with :
7981 version : v2.1.0
8082 install-mode : goinstall
@@ -124,12 +126,11 @@ jobs:
124126 go-version : ${{ env.GO_VERSION }}
125127 cache : true
126128 - name : Remove go.work
127- run : rm -f go.work go.work.sum - name: govulncheck
129+ run : rm -f go.work go.work.sum
130+ - name : govulncheck
128131 run : |
129- - name : Remove go.work
130- run : rm -f go.work go.work.sum go install golang.org/x/vuln/cmd/govulncheck@latest
131- - name : Remove go.work
132- run : rm -f go.work go.work.sum govulncheck ./...
132+ go install golang.org/x/vuln/cmd/govulncheck@latest
133+ govulncheck ./...
133134 - name : gosec (advisory)
134135 continue-on-error : true
135136 run : |
You can’t perform that action at this time.
0 commit comments