]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
.github/workflows: allow redmine-upkeep to write comments
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 16 Jul 2025 18:18:00 +0000 (14:18 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 12 Aug 2025 16:01:23 +0000 (12:01 -0400)
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>
.github/workflows/redmine-upkeep.yml

index d9e185f29d6d39d328bf320915f18120bf08e49b..58aab58945cbaa71f873767a80debf6a965b0fce 100644 (file)
@@ -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'