From 9ec94f0db4dfa312b86aede5d4ffaf936ee2763e Mon Sep 17 00:00:00 2001 From: Kotaro Yoshimoto Date: Wed, 5 Jun 2024 20:17:32 +0900 Subject: [PATCH] chore(ci): add a workflow for DCO check to avoid DCO bot system failure (#7270) Signed-off-by: Kotaro Yoshimoto pythagora.yoshimoto@gmail.com --- .github/workflows/dco.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/dco.yaml diff --git a/.github/workflows/dco.yaml b/.github/workflows/dco.yaml new file mode 100644 index 0000000000000..db7ace467c658 --- /dev/null +++ b/.github/workflows/dco.yaml @@ -0,0 +1,21 @@ +name: DCO +# ref: https://github.com/anchore/syft/pull/2926/files +on: + pull_request: +jobs: + dco: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Python 3.x + uses: actions/setup-python@v5 + with: + python-version: 3.x + + - name: Check DCO + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip3 install -U dco-check + dco-check --verbose --exclude-pattern 'pre-commit-ci\[bot\]@users\.noreply\.github\.com'