Add DCO workflow

Signed-off-by: Miki <mehranb@amazon.com>
This commit is contained in:
Miki 2021-11-08 15:11:06 -08:00
parent 4cc55095e6
commit 46861d8c8d
No known key found for this signature in database
GPG Key ID: C49A404B4D7AE54F
1 changed files with 18 additions and 0 deletions

18
.github/workflows/dco.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Developer Certificate of Origin Check
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@v1.1.0
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}