Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

Enforce DCO Sign-off

v1.1.0

Enforce DCO Sign-off

check-circle

Enforce DCO Sign-off

Enforce Developer Certificate of Origin (DCO) sign-off on Pull Requests

Installation

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

              

- name: Enforce DCO Sign-off

uses: KineticCafe/[email protected]

Learn more about this action in KineticCafe/actions-dco

Choose a version

@KineticCafe/actions-dco

Enforce the presence of commit sign-offs on pull requests, indicating that the contributor to a project certifies that they are permitted to contribute to the project. The sign-off line represents certification of the Developer Certificate of Origin.

Bot user contributions are automatically exempted.

Example Usage

name: DCO Check

on:
  pull_request:

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: KineticCafe/actions-dco@v1

Inputs

  • repo-token: The GitHub token for use with this action. It must have sufficient permissions to read pull request details.

    Default: ${{ github.token }}

  • exempt-authors: A whitespace separated list of email exemption patterns indicating an implied DCO sign-off (the contributors work for the company managing the project, for example). Permitted pattern formats are exact emails ([email protected]) or domain patterns (@example.org). Patterns that do not match this will be printed as warnings and ignored.

    exempt-authors are applied only for the commit author. The commit committer cannot exempt other peoples' contributions.

    name: DCO Check
    
    on:
    pull_request:
    
    jobs:
    check:
      runs-on: ubuntu-latest
      steps:
        - uses: KineticCafe/actions-dco@v1
          with:
            exempt-authors: |
              [email protected]
              @example.com