From 2932b2a3f72636f8c8aaa11aa13aa4c180a45c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp?= Date: Mon, 24 Oct 2022 22:15:24 +0100 Subject: [PATCH] Grant permission for type resolution Gradle job (#5470) Broken in https://github.com/detekt/detekt/pull/5452 --- .github/workflows/detekt-with-type-resolution.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/detekt-with-type-resolution.yaml b/.github/workflows/detekt-with-type-resolution.yaml index fabbcac4a3c..c268cc59085 100644 --- a/.github/workflows/detekt-with-type-resolution.yaml +++ b/.github/workflows/detekt-with-type-resolution.yaml @@ -46,6 +46,9 @@ jobs: gradle: + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/upload-sarif to upload SARIF results runs-on: ubuntu-latest if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} steps: