-
Notifications
You must be signed in to change notification settings - Fork 68
27 lines (23 loc) · 844 Bytes
/
Copy pathdco.yml
File metadata and controls
27 lines (23 loc) · 844 Bytes
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
name: Developer Certificate of Origin
on:
pull_request:
branches: [dev, main]
permissions:
contents: read
jobs:
signoff:
name: DCO sign-off
runs-on: ubuntu-latest
steps:
- name: Checkout pull request history
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- name: Verify every pull request commit
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
# DCO was introduced on dev by PR #208. Commits already reachable
# from this baseline predate enforcement and remain exempt.
DCO_BASELINE_SHA: 1d9469e162fce788bca839cfaf8a3e66ca35cf9b
run: python scripts/check_dco.py "$BASE_SHA" "$HEAD_SHA" "$DCO_BASELINE_SHA"