Skip to content

DCO

DCO #5742

Workflow file for this run

name: DCO
on:
pull_request: {}
workflow_dispatch: {}
merge_group:
types:
- checks_requested
jobs:
check-dco:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Skip DCO check in merge queue
if: github.event_name == 'merge_group'
run: |
echo "Skipping DCO check for merge queue - DCO is validated on PR commits before entering the queue"
exit 0
- name: Set up Python 3.x
if: github.event_name != 'merge_group'
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.x'
- name: Check DCO
if: github.event_name != 'merge_group'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip3 install -U dco-check
dco-check --exclude-pattern 'dependabot\[bot\]@users\.noreply\.github\.com'