This is an automated email from the ASF dual-hosted git repository.
acosentino 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 f03a701d879 Contributor cannot start PR comment workflow - Check
permission
f03a701d879 is described below
commit f03a701d8795f7220364db25cfabc90408c75e47
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Aug 27 14:22:38 2024 +0200
Contributor cannot start PR comment workflow - Check permission
Signed-off-by: Andrea Cosentino <[email protected]>
---
.github/workflows/pr-comment.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index b4cef478f7d..c88f72f91d1 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -26,7 +26,7 @@ permissions:
jobs:
pr_commented:
name: PR comment
- if: ${{ github.repository == 'apache/camel' &&
github.event.issue.pull_request && (github.event.comment.author_association ==
'MEMBER' || github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR') &&
startsWith(github.event.comment.body, '/component-test') }}
+ if: ${{ github.repository == 'apache/camel' &&
github.event.issue.pull_request && (github.event.comment.author_association ==
'MEMBER' || github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'CONTRIBUTOR') &&
startsWith(github.event.comment.body, '/component-test') }}
permissions:
pull-requests: write # to comment on a pull request
actions: read # to download artifact
@@ -35,6 +35,8 @@ jobs:
matrix:
java: [ '17' ]
steps:
+ - name: Check Permission
+ uses:
actions-cool/check-user-permission@956b2e73cdfe3bcb819bb7225e490cb3b18fd76e
- name: Retrieve sha
id: pr
env: