From f1be809aa22cbfa7dd16728a08ff9cb3f11592d6 Mon Sep 17 00:00:00 2001 From: takahirom Date: Mon, 15 Jul 2024 12:26:42 +0900 Subject: [PATCH] Fix permission for detekt yml --- .github/workflows/detekt-comment.yml | 8 ++++++-- .github/workflows/detekt.yml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/detekt-comment.yml b/.github/workflows/detekt-comment.yml index 95c1216f0..49a5abc0c 100644 --- a/.github/workflows/detekt-comment.yml +++ b/.github/workflows/detekt-comment.yml @@ -1,11 +1,15 @@ -name: Detekt Comment +name: detekt-comment on: workflow_run: - workflows: ["Detekt"] + workflows: ["detekt"] types: - completed +permissions: + actions: read + pull-requests: write + jobs: comment: runs-on: ubuntu-latest diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index c5012e1b3..a96138f11 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -1,4 +1,4 @@ -name: Detekt +name: detekt on: pull_request: