From 157de2259710f883e05aa1088cfe285ab3410344 Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 11:57:11 -0500 Subject: [PATCH] Give CI a read-only token and remove the CLA workflow `ci.yml` had no `permissions:` block, so its token got the repository's default. Its jobs only read the repository, so the workflow now asks for `contents: read`. `vscode-release.yml` already does, and the publish-only release workflow sets its own. This repository takes no outside pull requests anymore, so nobody signs the CLA here, and its workflow goes. --- .github/workflows/ci.yml | 3 +++ .github/workflows/cla.yml | 22 ---------------------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cfc79790..f020544de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: - main pull_request: +permissions: + contents: read + concurrency: group: ci-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml deleted file mode 100644 index ecd71ce21..000000000 --- a/.github/workflows/cla.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Contributor License Agreement (CLA) - -on: - pull_request_target: - types: [opened, synchronize] - issue_comment: - types: [created] - -jobs: - cla: - 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) - steps: - - uses: Shopify/shopify-cla-action@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - cla-token: ${{ secrets.CLA_TOKEN }}