PMM-13596 Add access control for logs and dump #160
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: golangci-lint | |
on: | |
push: | |
paths: | |
- pkg/** | |
- .github/workflows/go_lint.yml | |
- go.* | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
lint-go: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./go.mod | |
- run: CODEGEN_VERIFY=1 make gen-cue | |
- run: make gen-go | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v5 | |
with: | |
version: v1.59.0 | |
args: | | |
--config .golangci.toml --max-same-issues=0 --max-issues-per-linter=0 --verbose ./pkg/... ./pkg/apimachinery/... ./pkg/apiserver/... ./pkg/build/wire/... ./pkg/promlib/... ./pkg/util/xorm/... | |
only-new-issues: true | |
skip-cache: true | |
install-mode: binary |