From 44b08fc98aeefecc314f2c28986df89e67c17580 Mon Sep 17 00:00:00 2001 From: Jack Shaw Date: Wed, 28 Aug 2024 14:35:38 +0100 Subject: [PATCH] chore(cla): add cla check action The cla check verifies that someone contributing to a Canonical project has signed the Canonical CLA agreement --- .github/workflows/cla.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 00000000..ec3efc8f --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,16 @@ +name: "CLA check" +on: [pull_request, workflow_dispatch] + +permissions: + contents: read + +jobs: + cla-check: + permissions: + pull-requests: write # for canonical/has-signed-canonical-cla to create & update comments + runs-on: ubuntu-latest + steps: + - name: Check if CLA signed + uses: canonical/has-signed-canonical-cla@1.2.3 + with: + accept-existing-contributors: true