-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 966 Bytes
/
dco_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "Lint PR"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
# https://github.com/cncf/dcochecker
dco-check:
name: DCO signoff check
# Security!
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
permissions: read-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Check DCO
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DCO_CHECK_EXCLUDE_PATTERN: (dependabot|semiotic-labs-pr-automation)\[bot\]@users\.noreply\.github\.com
DCO_CHECK_VERBOSE: '1'
# Comma-separated list of emails that should be ignored during DCO checks
# DCO_CHECK_EXCLUDE_EMAILS: ${{ inputs.exclude-emails }}
run: |
pip3 install -U dco-check
dco-check