diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 194f2890..5f826efd 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -23,3 +23,4 @@ fixes #XXXX - [ ] Format your code `make fmt`. - [ ] Add unit tests or integration tests. - [ ] Update the documentation related to the change. +- [ ] All commits are signed with DCO (`git commit -s`). See [Developer Certificate of Origin (DCO)](CONTRIBUTING.md#developer-certificate-of-origin-dco). diff --git a/.github/workflows/dco-check.yml b/.github/workflows/dco-check.yml new file mode 100644 index 00000000..eebc1caf --- /dev/null +++ b/.github/workflows/dco-check.yml @@ -0,0 +1,24 @@ +name: DCO Check + +on: + pull_request: + branches: ["main"] + +# Declare default permissions as read only. +permissions: read-all + +jobs: + dco-check: + runs-on: ubuntu-latest + name: DCO Check + steps: + - name: Get PR Commits + id: get-pr-commits + uses: tim-actions/get-pr-commits@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: DCO Check + uses: tim-actions/dco@master + with: + commits: ${{ steps.get-pr-commits.outputs.commits }}