Security: Resolve gosec G300 CWE-276 file perm, fixes #164 #478
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vibe Check | |
on: | |
push: | |
branches: [ main, development ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: go mod tidy -v | |
run: go mod tidy -v | |
- name: go vet -v ./... | |
run: go vet -v ./... | |
- name: gosec ./... | |
run: | # https://github.com/securego/gosec/issues/469 | |
export PATH=$PATH:$(go env GOPATH)/bin | |
go install github.com/securego/gosec/v2/cmd/gosec@latest | |
gosec ./... | |
- name: go test -race -v ./... | |
run: go test -race -v ./... | |
- name: go build -v ./... | |
run: go build -v ./... |