diff --git a/.github/workflows/branch-protection-info.yml b/.github/workflows/branch-protection-info.yml index 21ff2c6a..e569c278 100644 --- a/.github/workflows/branch-protection-info.yml +++ b/.github/workflows/branch-protection-info.yml @@ -5,6 +5,11 @@ on: types: [opened, synchronize] workflow_dispatch: +permissions: + contents: read + issues: write + pull-requests: write + jobs: branch-protection-info: runs-on: ubuntu-latest @@ -46,7 +51,7 @@ jobs: ); if (!existingComment) { - github.rest.issues.createComment({ + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,