diff --git a/.github/workflows/pr-extended-linting.yml b/.github/workflows/pr-extended-linting.yml index a167caead8..903cdc7050 100644 --- a/.github/workflows/pr-extended-linting.yml +++ b/.github/workflows/pr-extended-linting.yml @@ -10,6 +10,13 @@ on: jobs: golangci-lint: + permissions: + # allow read access to the content for analysis. + contents: read + # allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read + # allow write access to checks to allow the action to annotate code in the PR. + checks: write runs-on: ubuntu-latest steps: - name: Checkout code @@ -28,4 +35,5 @@ jobs: with: version: latest args: --config=.github/.golangci.yml --timeout=30m - only-new-issues: true \ No newline at end of file + only-new-issues: true + skip-cache: true \ No newline at end of file