From 6d21ec689e2bb5ab2ed637980508e0855e72c106 Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Wed, 25 Nov 2026 12:07:26 +0100 Subject: [PATCH 1/2] ci: do not persist GITHUB_TOKEN in test checkouts The unit and integration lanes check out the repository and then run its code, but never push. Leaving the token in .git/config lets that code, or anything it pulls in, reuse it. SEC-2544 --- .github/workflows/run_integration.yml | 2 ++ .github/workflows/run_tests.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/run_integration.yml b/.github/workflows/run_integration.yml index 7e7e02db..c82f8074 100644 --- a/.github/workflows/run_integration.yml +++ b/.github/workflows/run_integration.yml @@ -25,6 +25,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index ca6bc9b7..d0f7e0a4 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -25,6 +25,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Setup PHP uses: shivammathur/setup-php@v2 From 29e87d922cb78693a9407f335e7263802490d332 Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Fri, 27 Nov 2026 15:33:35 +0100 Subject: [PATCH 2/2] ci: drop persisted checkout credentials in the Guzzle 8 job test-guzzle-8 runs composer update with unpinned dependencies, so the checkout must not leave GITHUB_TOKEN in .git/config. --- .github/workflows/run_tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index b2ba7ec6..472588a1 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -59,6 +59,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Setup PHP uses: shivammathur/setup-php@v2