33 issue_comment :
44 types : [created]
55 pull_request_target :
6- types : [opened,closed,synchronize]
6+ types : [opened, closed, synchronize]
77
88permissions :
99 actions : write
@@ -13,19 +13,25 @@ permissions:
1313
1414jobs :
1515 CLA-Assistant :
16+ if : github.event_name == 'pull_request_target' ||
17+ (
18+ github.event.comment.body == 'recheck' ||
19+ github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'
20+ )
1621 runs-on : ubuntu-latest
1722 steps :
23+ - uses : scratchfoundation/scratch-agreements/.github/actions/cla-allowlist@main
24+ id : cla-allowlist
1825 - name : " CLA Assistant"
19- 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'
2026 uses : contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
2127 env :
2228 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2329 # the below token should have repo scope and must be manually added by you in the repository's secrets
2430 PERSONAL_ACCESS_TOKEN : ${{ secrets.GHA_AGREEMENTS_PAT }}
2531 with :
26- remote-organization-name : ' scratchfoundation'
27- remote-repository-name : ' scratch-agreements'
28- path-to-signatures : ' signatures/version1/cla.json'
29- path-to-document : ' https://github.com/scratchfoundation/scratch-agreements/blob/main/CLA.md'
30- branch : ' main'
31- allowlist : semantic-release-bot,*[bot]
32+ remote-organization-name : " scratchfoundation"
33+ remote-repository-name : " scratch-agreements"
34+ path-to-signatures : " signatures/version1/cla.json"
35+ path-to-document : " https://github.com/scratchfoundation/scratch-agreements/blob/main/CLA.md"
36+ branch : " main"
37+ allowlist : ${{ steps.cla-allowlist.outputs.allowlist }}
0 commit comments