DCO Check GitHub workflow (#7179)

DCO App not working and needed to be disabled the check.
Introducing DCO GitHub action workflow to validate the commit signatures.

Closes #7175

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
Signed-off-by: Ry Jones <ry@linux.com>
This commit is contained in:
Chaminda Divitotawela
2024-06-05 23:48:32 +10:00
committed by GitHub
parent 31dff4410a
commit 777479699f

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

@@ -0,0 +1,19 @@
name: DCO
on: [pull_request]
jobs:
dco_check:
runs-on: ubuntu-latest
name: DCO
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@198af03565609bb4ed924d1260247b4881f09e7d
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@f2279e6e62d5a7d9115b0cb8e837b777b1b02e21
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}