Fixes errors like:
Posting a comment to GitHub PR #62992.
GitHub API error posting comment to PR #62992: 401 Client Error: Unauthorized for url: https://api.github.com/repos/ceph/ceph/issues/62992/comments - Response: {"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment","status":"401"}
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
redmine-upkeep:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/redmine-upkeep'
+ permissions:
+ # To allow writing comments on PRs:
+ issues: write
steps:
- name: Checkout main branch for pull_request_target
if: github.event_name == 'pull_request_target'