diff --git a/.github/workflows/basic_go.yml b/.github/workflows/basic_go.yml index faa595f..6b6945e 100644 --- a/.github/workflows/basic_go.yml +++ b/.github/workflows/basic_go.yml @@ -8,6 +8,9 @@ on: # Arrays are currently not accepted: # https://github.com/orgs/community/discussions/11692 default: "['stable' , 'oldstable']" + staticcheck-version: + type: string + default: 'latest' static-analysis-excludes-regex: type: string # TODO(wenvous): gofmt is harder to work with since it always recursively @@ -169,7 +172,7 @@ jobs: - name: Install staticcheck if: ${{ !cancelled() }} run: | - go install honnef.co/go/tools/cmd/staticcheck@latest + go install honnef.co/go/tools/cmd/staticcheck@${{ inputs.staticcheck-version }} - name: Cache for staticcheck if: ${{ !cancelled() && !inputs.skip-staticcheck }}