Skip to content

Commit 6e38f80

Browse files
authored
Add CLA signature enforcement bot. (#106)
Sorry, the lawyers insist. (This is the same bot we use on the workerd repo.)
1 parent f4275f5 commit 6e38f80

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/cla.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "CLA Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened,synchronize]
7+
merge_group:
8+
9+
permissions:
10+
actions: write
11+
contents: write # to store signatures on cla-signatures branch
12+
pull-requests: write
13+
statuses: write
14+
15+
jobs:
16+
CLAssistant:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: "CLA Assistant"
20+
if: (github.event.issue.pull_request && (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'
21+
uses: contributor-assistant/[email protected]
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
path-to-signatures: 'signatures/version1/cla.json'
26+
path-to-document: 'https://www.cloudflare.com/cla/'
27+
# branch should not be protected
28+
branch: 'cla-signatures'
29+
allowlist: dependabot[bot],workers-devprod
30+
lock-pullrequest-aftermerge: false

0 commit comments

Comments
 (0)