From 7aac127a2f898422894b9efb6325a5ef097946d1 Mon Sep 17 00:00:00 2001 From: Drew Hess Date: Sun, 14 May 2023 23:24:45 +0100 Subject: [PATCH] chore: Add a DCO check. Closes https://github.com/hackworthltd/primer/issues/936 Note that this workflow currently triggers on merge queue entries, but I'm not sure whether that functionality will work, because the Probot app upon which it's based doesn't have explicit support for that. However, it may not matter in practice, as presumably any PR that enters the merge queue will have already passed the DCO check in the first place. For now, this check isn't a required job, only advisory, so it won't block anything from merging, in any case. Signed-off-by: Drew Hess --- .github/workflows/check-dco.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/check-dco.yaml diff --git a/.github/workflows/check-dco.yaml b/.github/workflows/check-dco.yaml new file mode 100644 index 000000000..fbc2edb52 --- /dev/null +++ b/.github/workflows/check-dco.yaml @@ -0,0 +1,21 @@ +name: Check DCO + +on: + pull_request: + merge_group: + +jobs: + check-dco: + permissions: + checks: write + contents: read + pull-requests: read + statuses: write + + runs-on: ubuntu-latest + + steps: + - name: Check DCO + uses: hackworthltd/dcoapp@v1.1.0 + with: + token: ${{ secrets.GITHUB_TOKEN }}