From f5c8ad46a57a886d4abf08de51fafd509973fd98 Mon Sep 17 00:00:00 2001 From: "Sam Wang (holyspectral)" Date: Wed, 12 Mar 2025 14:38:06 -0400 Subject: [PATCH] chore: update golangci-lint --- .github/workflows/golangci-lint.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 2a02117c..539b60fe 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,22 +1,26 @@ name: golangci-lint on: - push: - branches: - - main - - master + workflow_dispatch: pull_request: +permissions: {} + jobs: golangci: name: lint runs-on: ubuntu-latest + permissions: + contents: read steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 + - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 with: go-version: stable - name: golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@4696ba8babb6127d732c3c6dde519db15edab9ea # v6.5.1 with: - version: v1.61 + version: latest + install-mode: binary args: --timeout=30m