Skip to content

actionshub/dco

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dco-check

Build CodeQL Lint

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

You can also configure labels that tell this plugin to skip checking this PR (e.g. for "obvious fixes").

Usage

Add .github/workflows/dco.yml with the following:

name: DCO
on: [pull_request]

jobs:
  dco:
    runs-on: ubuntu-latest
    name: Commits Check
    steps:
    - name: Get PR Commits
      id: 'get-pr-commits'
      uses: actionshub/get-pr-commits@main
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
    - name: DCO Check
      uses: actionshub/dco@main
      with:
        commits: ${{ steps.get-pr-commits.outputs.commits }}

Bypassing DCO for specific PRs

Many repos may exempt DCO requirments for "obvious fix" PRs. You can configure a label to tell this check that a PR is an obvious fix and should not require a DCO:

    - name: DCO Check
      uses: actionshub/dco@main
      with:
        commits: ${{ steps.get-pr-commits.outputs.commits }}
        allow-obvious-fix-label: "obvious-fix"

With this, if the obvious-fix label is on a PR, the DCO check will be bypassed.

Skipping specific commits

It will ensure all commits on a commit have DCO - specific commits can be skipped using the filtering options to get-pr-commits

History

This is a fork of tim-actions/dco, which is no longer maintained.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors