Skip to content

[pull] main from hashicorp:main #6614

[pull] main from hashicorp:main

[pull] main from hashicorp:main #6614

Workflow file for this run

---
name: GoLang Linting
permissions:
contents: read
on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/golint.yaml'
- 'vendor/**'
- '**.go'
concurrency:
group: 'golint-${{ github.head_ref }}'
cancel-in-progress: true
jobs:
golint:
runs-on: custom-linux-large
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: ./.go-version
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: 'v1.61.0'
args: -v ./internal/...
save-artifacts-on-fail:
if: ${{ needs.golint.result }} == 'failure'
uses: ./.github/workflows/save-artifacts.yaml
comment-on-fail:
if: ${{ needs.depscheck.result }} == 'failure'
uses: ./.github/workflows/comment-failure.yaml