From 55d0adc6acdb0d97cbb190653d65318ec77d26da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:11:16 +0000 Subject: [PATCH 1/2] Initial plan From 9343ff62c91bdce74b4acd6a02bca88cd2807567 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:27:46 +0000 Subject: [PATCH 2/2] Security: replace token-in-URL with credential helper in security-review.lock.yml Co-authored-by: pmalarme <686568+pmalarme@users.noreply.github.com> --- .github/workflows/security-review.lock.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/security-review.lock.yml b/.github/workflows/security-review.lock.yml index 0b39007..95d0d6f 100644 --- a/.github/workflows/security-review.lock.yml +++ b/.github/workflows/security-review.lock.yml @@ -295,14 +295,12 @@ jobs: memory-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}- - name: Configure Git credentials env: - REPO_NAME: ${{ github.repository }} - SERVER_URL: ${{ github.server_url }} + GH_TOKEN: ${{ github.token }} run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - # Re-authenticate git with GitHub token - SERVER_URL_STRIPPED="${SERVER_URL#https://}" - git remote set-url origin "https://x-access-token:${{ github.token }}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + # Authenticate via inline credential helper — token is never written to .git/config and never embedded in a URL. + git config --global credential.helper '!f() { printf "username=x-access-token\npassword=%s\n" "$GH_TOKEN"; }; f' echo "Git configured with standard GitHub Actions identity" - name: Checkout PR branch id: checkout-pr @@ -744,14 +742,12 @@ jobs: XDG_CONFIG_HOME: /home/runner - name: Configure Git credentials env: - REPO_NAME: ${{ github.repository }} - SERVER_URL: ${{ github.server_url }} + GH_TOKEN: ${{ github.token }} run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - # Re-authenticate git with GitHub token - SERVER_URL_STRIPPED="${SERVER_URL#https://}" - git remote set-url origin "https://x-access-token:${{ github.token }}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + # Authenticate via inline credential helper — token is never written to .git/config and never embedded in a URL. + git config --global credential.helper '!f() { printf "username=x-access-token\npassword=%s\n" "$GH_TOKEN"; }; f' echo "Git configured with standard GitHub Actions identity" - name: Copy Copilot session state files to logs if: always()