mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -05:00
💚 fix gosec
This commit is contained in:
parent
bcc42dea79
commit
4b36223b4b
6
.github/workflows/test-on-pr.yml
vendored
6
.github/workflows/test-on-pr.yml
vendored
@ -22,6 +22,6 @@ jobs:
|
|||||||
go build cmd/dashboard/main.go
|
go build cmd/dashboard/main.go
|
||||||
go build cmd/agent/main.go
|
go build cmd/agent/main.go
|
||||||
- name: Run Gosec Security Scanner
|
- name: Run Gosec Security Scanner
|
||||||
uses: securego/gosec@master
|
run: |
|
||||||
with:
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||||
args: -exclude=G104 ./...
|
gosec -exclude=G104 ./...
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -17,11 +17,9 @@ jobs:
|
|||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: go version
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '^1.17.2'
|
go-version: "^1.17.2"
|
||||||
- run: go version
|
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
run: |
|
run: |
|
||||||
go test -v ./...
|
go test -v ./...
|
||||||
@ -30,6 +28,6 @@ jobs:
|
|||||||
go build cmd/dashboard/main.go
|
go build cmd/dashboard/main.go
|
||||||
go build cmd/agent/main.go
|
go build cmd/agent/main.go
|
||||||
- name: Run Gosec Security Scanner
|
- name: Run Gosec Security Scanner
|
||||||
uses: securego/gosec@master
|
run: |
|
||||||
with:
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||||
args: -exclude=G104 ./...
|
gosec -exclude=G104 ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user