From b71a9853da4d0c853842fb734120d2dbb2ab2626 Mon Sep 17 00:00:00 2001 From: Peter Wagner Date: Tue, 20 Oct 2026 11:27:50 -0400 Subject: [PATCH] Inline CLA workflow to remove github-workflows dependency --- .github/workflows/cla.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 6de1796..1cbe9f1 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -10,10 +10,18 @@ permissions: {} jobs: cla: - uses: Shopify/github-workflows/.github/workflows/cla.yaml@0b6f7f7def1c8f895fd31cd4183f98e3562458e9 # v0.2.0 + runs-on: ubuntu-latest + if: | + (github.event.issue.pull_request + && !github.event.issue.pull_request.merged_at + && contains(github.event.comment.body, 'signed') + ) + || (github.event.pull_request && !github.event.pull_request.merged) permissions: - actions: write - pull-requests: write - secrets: - token: ${{secrets.GITHUB_TOKEN}} - cla-token: ${{secrets.CLA_TOKEN}} + actions: write # to re-trigger workflows + pull-requests: write # to add/remove labels + steps: + - uses: Shopify/shopify-cla-action@9938f4b43524d1cfa7471ce9a803edf226697284 # v1.8.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + cla-token: ${{ secrets.CLA_TOKEN }}