Skip to content

Commit 9ec94f0

Browse files
authored
chore(ci): add a workflow for DCO check to avoid DCO bot system failure (#7270)
Signed-off-by: Kotaro Yoshimoto pythagora.yoshimoto@gmail.com
1 parent 10a83d9 commit 9ec94f0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/dco.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: DCO
2+
# ref: https://github.com/anchore/syft/pull/2926/files
3+
on:
4+
pull_request:
5+
jobs:
6+
dco:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup Python 3.x
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: 3.x
15+
16+
- name: Check DCO
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: |
20+
pip3 install -U dco-check
21+
dco-check --verbose --exclude-pattern 'pre-commit-ci\[bot\]@users\.noreply\.github\.com'

0 commit comments

Comments
 (0)