From 8f624094902e3b68051c7b8b5f6beedb77fb2612 Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Wed, 25 Nov 2026 12:07:26 +0100 Subject: [PATCH] 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 4607fc2e..ddcb2156 100644 --- a/.github/workflows/run_integration.yml +++ b/.github/workflows/run_integration.yml @@ -27,6 +27,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v5.0.1 + with: + persist-credentials: false - name: Setup JDK 17 uses: actions/setup-java@v5.1.0 diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index ec9e661d..dac1b1de 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -21,6 +21,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v5.0.1 + with: + persist-credentials: false - name: Setup JDK 17 uses: actions/setup-java@v5.1.0