From 379c279fb998126daef7f44bcfc28d595a10e63f Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Thu, 11 Jul 2024 10:19:42 -0500 Subject: [PATCH] limit ci to checking files that are changed in a PR/commit --- .github/workflows/golangci-lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a9f46ef62..73e418b4c 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -6,6 +6,7 @@ on: pull_request: permissions: contents: read + pull-requests: read # Remove along with only-new-issues by 2025 jobs: golangci: name: lint @@ -24,4 +25,6 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: + args: --whole-files # Remove alogn with only-new-issues by 2025 version: ${{ steps.golangcilint.outputs.version }} + only-new-issues: true # Remove along with pull-requests: read permission by 2025