Skip to content

Commit c4a479b

Browse files
Added GitHub DCO workflow
1 parent 9de48bc commit c4a479b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/cla.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "DCO Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened,closed,synchronize]
7+
8+
permissions:
9+
actions: write
10+
contents: write
11+
pull-requests: write
12+
statuses: write
13+
14+
jobs:
15+
DCOAssistant:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: "DCO Assistant"
19+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the DCO Document and I hereby sign the DCO') || github.event_name == 'pull_request_target'
20+
uses: contributor-assistant/github-action@v2.3.0
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
path-to-signatures: '.github/dco/signatures.json'
25+
path-to-document: 'https://developercertificate.org/'
26+
branch: 'dco-do-not-remove'
27+
allowlist: user1,bot*
28+
use-dco-flag: true
29+
custom-notsigned-prcomment: '<br/>Thank you for your submission. Before we can accept your contribution, please sign our [Developer Certificate of Origin](https://developercertificate.org) by posting a comment with the content exactly as below.<br/>'

0 commit comments

Comments
 (0)