From 9ce01fa32fe1245d4d992632a532b79e1571d66b Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Sun, 16 Aug 2026 00:32:49 +0200 Subject: [PATCH] ci: CLA signing check on pull requests CLA Assistant Lite workflow: a PR stays red until its author signs CLA.md by comment; signatures land on the cla-signatures branch. --- .github/workflows/cla.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000..2739f8a --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,29 @@ +# CLA Assistant Lite: blocks a PR until its author has signed CLA.md by +# commenting the sign phrase; signatures land on the cla-signatures branch. +name: CLA + +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + cla: + runs-on: ubuntu-latest + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + steps: + - uses: contributor-assistant/github-action@v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: 'signatures/cla.json' + path-to-document: 'https://github.com/stffnb/Web_ODF_Editor/blob/main/CLA.md' + branch: 'cla-signatures' + allowlist: 'stffnb,dependabot[bot],*[bot]'