github.com/goreleaser/goreleaser@v1.25.1/.github/workflows/lint.yml (about)

     1  name: golangci-lint
     2  on:
     3    push:
     4      tags:
     5        - v*
     6      branches:
     7        - main
     8    pull_request:
     9  permissions:
    10    contents: read
    11  
    12  jobs:
    13    golangci:
    14      permissions:
    15        contents: read # for actions/checkout to fetch code
    16        pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
    17      name: lint
    18      runs-on: ubuntu-latest
    19      steps:
    20        - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3
    21        - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
    22          with:
    23            go-version: stable
    24            cache: false
    25        - name: golangci-lint
    26          uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v3
    27          with:
    28            args: --timeout=5m
    29            version: v1.56.2