From 60867e9214f1bc9bdbc603baaa57d9667a19e6ac Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 12 Feb 2024 11:13:31 +0100 Subject: [PATCH] Specify permissions for golangci-lint-action --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84ae4c7..1a0bd73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,13 @@ jobs: lint: name: lint runs-on: ubuntu-latest + permissions: + # Required: allow read access to the content for analysis. + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read + # Optional: Allow write access to checks to allow the action to annotate code in the PR. + checks: write steps: - uses: actions/checkout@v4 - name: Set up Go