Skip to content
play

GitHub Action

dco-check

v1.1.0 Latest version

dco-check

play

dco-check

A GitHub Action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information

Installation

Copy and paste the following snippet into your .yml file.

              

- name: dco-check

uses: tim-actions/[email protected]

Learn more about this action in tim-actions/dco

Choose a version

dco-check

A GitHub Action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information

Usage

Add .github/workflows/sanity-check.yml with the following:

name: Sanity check
on: [pull_request]

jobs:
  commits_check_job:
    runs-on: ubuntu-latest
    name: Commits 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 }}