From 5ea885c87ffb3c0eeabe1dc6d1867028ff94a26b Mon Sep 17 00:00:00 2001 From: Sam Maddock Date: Thu, 20 Feb 2025 14:38:20 -0500 Subject: [PATCH] build: skip chromium git cookie on forks (#45735) --- .github/actions/set-chromium-cookie/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/set-chromium-cookie/action.yml b/.github/actions/set-chromium-cookie/action.yml index 5b41dd69224a..70d0852624a6 100644 --- a/.github/actions/set-chromium-cookie/action.yml +++ b/.github/actions/set-chromium-cookie/action.yml @@ -4,7 +4,7 @@ runs: using: "composite" steps: - name: Set the git cookie from chromium.googlesource.com (Unix) - if: ${{ runner.os != 'Windows' }} + if: ${{ runner.os != 'Windows' && env.CHROMIUM_GIT_COOKIE }} shell: bash run: | eval 'set +o history' 2>/dev/null || setopt HIST_IGNORE_SPACE 2>/dev/null @@ -18,7 +18,7 @@ runs: __END__ eval 'set -o history' 2>/dev/null || unsetopt HIST_IGNORE_SPACE 2>/dev/null - name: Set the git cookie from chromium.googlesource.com (Windows) - if: ${{ runner.os == 'Windows' }} + if: ${{ runner.os == 'Windows' && env.CHROMIUM_GIT_COOKIE_WINDOWS_STRING }} shell: cmd run: | git config --global http.cookiefile "%USERPROFILE%\.gitcookies"