From: Patrick Donnelly Date: Wed, 16 Jul 2025 18:18:00 +0000 (-0400) Subject: .github/workflows: allow redmine-upkeep to write comments X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d8cec9683d71cff7ba265a5c5d73b173890ace68;p=ceph.git .github/workflows: allow redmine-upkeep to write comments 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 --- diff --git a/.github/workflows/redmine-upkeep.yml b/.github/workflows/redmine-upkeep.yml index d9e185f29d6d..58aab58945cb 100644 --- a/.github/workflows/redmine-upkeep.yml +++ b/.github/workflows/redmine-upkeep.yml @@ -38,6 +38,9 @@ jobs: 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'