From 41bc5e218785d53d69f9dd8546a84607e8ddbb1a Mon Sep 17 00:00:00 2001 From: Kordian Bruck Date: Sun, 22 Sep 2024 20:32:41 +0200 Subject: [PATCH] Ignore existing issues and annotate the code in the PR diff for better visibility. --- .github/workflows/golangci-lint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 938397c..00fbab3 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -9,7 +9,9 @@ on: permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read + pull-requests: read + # Optional: allow write access to checks to allow the action to annotate code in the PR. + checks: write jobs: golangci: @@ -23,4 +25,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.60 \ No newline at end of file + version: v1.60 + only-new-issues: true \ No newline at end of file