From 7834b7c56e0a246a4e151962f71300359d64b72f Mon Sep 17 00:00:00 2001 From: aceld Date: Wed, 18 Dec 2024 17:10:59 +0800 Subject: [PATCH] Fix CodeQL: Actions Job or Workflow does not set permissions --- .github/workflows/reviewdog.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index dd3fc059..7392685d 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,5 +1,10 @@ name: reviewdog on: [pull_request] + +permissions: + contents: read + pull-requests: write + jobs: golangci-lint: runs-on: ubuntu-latest