From f88dc88c8d2f1b06e1ff88fc929dda6388410dd6 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 6 May 2022 17:23:06 +0200 Subject: [PATCH] added permissions --- .github/workflows/comment-failed-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment-failed-pr.yml b/.github/workflows/comment-failed-pr.yml index eb727f96f..d105873bb 100644 --- a/.github/workflows/comment-failed-pr.yml +++ b/.github/workflows/comment-failed-pr.yml @@ -1,4 +1,6 @@ name: Comment on failed PR +permissions: + pull-requests: write on: workflow_run: @@ -31,5 +33,5 @@ jobs: issue_number: ${{ steps.pr_num_reader.outputs.content }}, owner: context.repo.owner, repo: context.repo.repo, - body: 'The PR check action failed. Please review the logs and make the necessary changes.' + context.payload.workflow_run.html_url + body: 'The PR check action failed. Please review the logs and make the necessary changes. ' + context.payload.workflow_run.html_url })