Skip to content

Commit 04ee250

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> Signed-off-by: Bobo Bäck Engström <bobo@id8-engineering.io>
1 parent c207ceb commit 04ee250

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
name: DCO Check
1+
name: DCO
22

33
on:
44
pull_request:
5-
branches: [ "main" ]
65

76
jobs:
8-
dco:
7+
DCO:
98
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
1013
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v4
14+
- name: Check DCO
15+
uses: cpanato/dco-check-action@main
1316
with:
14-
fetch-depth: 0
15-
16-
- name: Run DCO check
17-
uses: tim-actions/dco-check@v1
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
repository: ${{ github.repository }}
19+
pull_request_number: ${{ github.event.number }}

0 commit comments

Comments
 (0)