Skip to content

Commit 2e4ee18

Browse files
committed
chore: re-enable CLA for external contributors
1 parent 04f79ab commit 2e4ee18

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/cla.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ name: "CLA Assistant"
22
on:
33
issue_comment:
44
types: [created, edited]
5-
pull_request:
6-
types: [opened,closed,synchronize]
5+
pull_request_target:
6+
types: [opened, closed, synchronize]
7+
8+
# Recommended permissions scoping for CLA Assistant
9+
permissions:
10+
contents: read
11+
actions: write
12+
pull-requests: write
13+
statuses: write
714

815
jobs:
916
CLAssistant:
@@ -31,10 +38,10 @@ jobs:
3138
3239
echo "::add-mask::$ALL_MEMBERS"
3340
echo "org_members=$ALL_MEMBERS" >> $GITHUB_OUTPUT
34-
41+
3542
- name: "CLA Assistant"
36-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request'
37-
uses: contributor-assistant/github-action@v2.2.1
43+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
44+
uses: contributor-assistant/github-action@v2.6.1
3845
env:
3946
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4047
PERSONAL_ACCESS_TOKEN: ${{ secrets.REPO_SCOPE }}

0 commit comments

Comments
 (0)