Skip to content

update trigger, permission for lint workflow #39

update trigger, permission for lint workflow

update trigger, permission for lint workflow #39

Workflow file for this run

name: golangci-lint
on:
pull_request:
branches: main
types:
- opened
- reopened
- synchronize
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: Checkout mode
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
check-latest: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: v1.59
args: --timeout=5m