Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StepSecurity Maintained Action

step-security/tim-actions-dco

Enforces Developer Certificate of Origin (DCO) compliance by validating sign-off on every commit in a pull request

Table of Contents

Inputs

Input Description Required Default
commits JSON array of pull request commits to validate for DCO sign-off true

Usage

Create a workflow file in your repository under .github/workflows/ and paste the configuration below to start enforcing DCO sign-off on every pull request.

name: Enforce DCO

on:
  pull_request:
    branches:
      - main
    types: [opened, synchronize, reopened, edited]

jobs:
  verify_dco:
    runs-on: ubuntu-latest
    name: Verify DCO Sign-off
    permissions:
      pull-requests: read
    steps:
      - name: Collect PR Commits
        id: collect-commits
        uses: tim-actions/get-pr-commits@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

      - name: Check DCO Sign-off
        uses: step-security/tim-actions-dco@v1
        with:
          commits: ${{ steps.collect-commits.outputs.commits }}

About

Secure drop-in replacement for tim-actions/dco.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages