From 4a2633e66a5c35fe14fb72c6592644e145129d96 Mon Sep 17 00:00:00 2001 From: Aaron Ritter Date: Sat, 13 Jan 2024 10:40:30 +0100 Subject: [PATCH] ci(detekt): add job write permissions to security-events --- .github/workflows/detekt.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 190d659..21eb033 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -40,7 +40,12 @@ jobs: name: Detekt Scan # The type of runner that the job will run on runs-on: ubuntu-latest - + permissions: + # required for all workflows + security-events: write + # only required for workflows in private repositories + actions: read + contents: read # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it