From c1f024c8054ab2fbc83b18d4c6381cc36aa0eb60 Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Thu, 16 Jan 2025 10:04:36 +0800 Subject: [PATCH] fix: remove unsupported args for golanci-lint --- .github/workflows/golangci-lint.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 41f06f34..3887be2b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -9,15 +9,14 @@ on: pull_request: permissions: contents: read - # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read + pull-requests: read jobs: golangci: name: lint runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 with: egress-policy: audit @@ -35,17 +34,4 @@ jobs: version: latest # Optional: golangci-lint command line arguments. - args: --timeout 10m ./... - - # Optional: show only new issues if it's a pull request. The default value is `false`. - only-new-issues: false - - # Optional: if set to true then the all caching functionality will be complete disabled, - # takes precedence over all other caching options. - skip-cache: false - - # Optional: if set to true then the action don't cache or restore ~/go/pkg. - skip-pkg-cache: false - - # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - skip-build-cache: false \ No newline at end of file + args: -v --timeout 10m ./... \ No newline at end of file