Skip to content

Commit

Permalink
Added GitHub DCO workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-kkudrynski authored Apr 18, 2023
1 parent 9de48bc commit c4a479b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "DCO Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

permissions:
actions: write
contents: write
pull-requests: write
statuses: write

jobs:
DCOAssistant:
runs-on: ubuntu-latest
steps:
- name: "DCO Assistant"
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'
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path-to-signatures: '.github/dco/signatures.json'
path-to-document: 'https://developercertificate.org/'
branch: 'dco-do-not-remove'
allowlist: user1,bot*
use-dco-flag: true
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 comments on commit c4a479b

Please sign in to comment.