This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new acf2e7df7a91 Fix CI test summary comment permissions (#21998)
acf2e7df7a91 is described below

commit acf2e7df7a919c435e4fc46ec6e8104f4a03f49c
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Mar 16 07:52:07 2026 +0100

    Fix CI test summary comment permissions (#21998)
    
    The `Post CI test summary comment` step was failing with
    `Resource not accessible by integration` because the build job
    had `issues: write` permission instead of `pull-requests: write`.
    
    PR comments require `pull-requests: write` (as correctly used by
    the `/component-test` workflow). Also add `contents: read` since
    job-level permissions replace the workflow-level ones entirely.
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
---
 .github/workflows/pr-build-main.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pr-build-main.yml 
b/.github/workflows/pr-build-main.yml
index 4be82e9f0475..8d46b8376673 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/pr-build-main.yml
@@ -50,7 +50,8 @@ jobs:
   build:
     if: github.repository == 'apache/camel'
     permissions:
-      issues: write
+      contents: read
+      pull-requests: write
     runs-on: ubuntu-latest
     continue-on-error: ${{ matrix.experimental }}
     strategy:

Reply via email to