INFOPLAT 2963 beholder rotating auth headers loop impl #9086
This file contains hidden or 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: [pull_request] | |
jobs: | |
golangci-lint: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
with: | |
persist-credentials: false | |
- name: Get golangci-lint version from asdf | |
id: get-version | |
run: | | |
version=$(grep '^golangci-lint ' .tool-versions | awk '{print $2}') | |
echo "version=${version}" | tee -a "$GITHUB_OUTPUT" | |
- name: golangci-lint | |
if: ${{ always() && !contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }} | |
# NOTE: Keep this version in sync with ACTION_CI_LINT_GO_GIT_TAG in ./script/lint.sh | |
uses: smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/3.0.0 | |
with: | |
checkout-repo: false | |
golangci-lint-version: v${{ steps.get-version.outputs.version }} |