Skip to content

Commit fb2f47a

Browse files
authored
Merge pull request #4112 from Blargian/addendum_further_improvements_4
Legal: fix bug in workflow-authentication comments
2 parents 699ea25 + b3a8d0c commit fb2f47a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/trademark-cla-approval.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions: write-all
1717
jobs:
1818
process-cla-approval:
1919
runs-on: ubuntu-latest
20-
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'cla-signed' || github.event_name == 'issue_comment'
20+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_target' && github.event.label.name == 'cla-signed' && github.actor != 'github-actions[bot]') || github.event_name == 'issue_comment'
2121

2222
steps:
2323

@@ -123,6 +123,7 @@ jobs:
123123
}
124124
125125
// For non-comment approvals, check if the person has the right permissions
126+
console.log(`isCommentApproval: ${isCommentApproval}, context.eventName: ${context.eventName}, context.actor: ${context.actor}`);
126127
if (!isCommentApproval) {
127128
try {
128129
const { data: collaboration } = await github.rest.repos.getCollaboratorPermissionLevel({

0 commit comments

Comments
 (0)