From b86ebeedb93e78669abb7a5c01ca1a3146907703 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 24 Nov 2026 16:29:59 +0000 Subject: [PATCH] remove `contents: read` permission from workflows reverts c084e0a and 820c345, which were only needed while the repo was private. Amp-Thread-ID: https://ampcode.com/threads/T-01a20e63-696b-7059-9568-05f533682284 Co-authored-by: Amp --- .github/workflows/code-style-lint.yml | 1 - .github/workflows/tests.yml | 3 +-- .github/workflows/zizmor.yml | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-style-lint.yml b/.github/workflows/code-style-lint.yml index b309d94..f9d517f 100644 --- a/.github/workflows/code-style-lint.yml +++ b/.github/workflows/code-style-lint.yml @@ -4,7 +4,6 @@ on: # zizmor: ignore[concurrency-limits] pull_request: permissions: - contents: read pull-requests: read # required by tj-actions/changed-files when use_rest_api: true jobs: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 03e9c85..799072c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,8 +7,7 @@ on: # zizmor: ignore[concurrency-limits] - "*.x" pull_request: -permissions: - contents: read +permissions: {} jobs: php_tests: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 2387cec..4cb210d 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -11,8 +11,7 @@ on: paths: - ".github/**.yml" -permissions: - contents: read +permissions: {} concurrency: group: ${{ github.workflow }}-${{ github.ref }}