Skip to content

Commit c207ceb

Browse files
committed
chore(CI): Add dco workflow to enhance that commits is signed on pull requests
Signed-off-by: Bobo <back-engstrom@hotmail.com>
1 parent 4b8cf47 commit c207ceb

2 files changed

Lines changed: 17 additions & 39 deletions

File tree

.github/workflows/dco.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
name: DCO Check
2-
1+
name: DCO
32
on:
43
pull_request:
54
branches: [ "main" ]
6-
75
jobs:
8-
dco:
6+
check_dco:
97
runs-on: ubuntu-latest
8+
name: Check DCO
109
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v5
13-
14-
- name: Set up Python
15-
uses: actions/setup-python@v6
10+
- name: Run dco-check
11+
uses: christophebedard/dco-check@0.5.0
1612
with:
17-
python-version: "3.12"
18-
19-
- name: Set up uv
20-
uses: astral-sh/setup-uv@v1
21-
22-
- name: Install DCO Check
23-
run: uv pip install dco-check
24-
25-
- name: Run DCO Check
26-
run: uv run dco-check --strict --verbose
13+
python-version: '3.12'
14+
args: '--verbose'
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+

.github/workflows/ruff.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
1-
name: Ruff
1+
name: DCO Check
22

33
on:
44
pull_request:
55
branches: [ "main" ]
66

77
jobs:
8-
lint:
8+
dco:
99
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
13-
1410
steps:
15-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16-
17-
- name: Set up Python
18-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
19-
11+
- name: Checkout code
12+
uses: actions/checkout@v4
2013
with:
21-
python-version: ${{ matrix.python-version }}
22-
23-
- name: Set up uv
24-
uses: astral-sh/setup-uv@v7
25-
26-
- name: Run Ruff
27-
run: uv run ruff check --output-format=github .
14+
fetch-depth: 0
2815

29-
- name: Run Ruff formatter
30-
run: uv run ruff format --diff .
16+
- name: Run DCO check
17+
uses: tim-actions/dco-check@v1

0 commit comments

Comments
 (0)