From ad2530b790f0e0bf993ffc366a18e8979e88fc0a Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Mon, 9 Aug 2021 10:35:01 -0700 Subject: [PATCH] Ensure that we are checking out the remote branch we want to modify... --- .github/workflows/detection-testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/detection-testing.yml b/.github/workflows/detection-testing.yml index ede3855429..8ffc170936 100644 --- a/.github/workflows/detection-testing.yml +++ b/.github/workflows/detection-testing.yml @@ -66,7 +66,7 @@ jobs: REAL_BRANCH=$(git branch -a --contains $GITHUB_SHA | tail -n1 | cut -d'/' -f3) echo "REAL BRANCH NAME $REAL_BRANCH" echo "CHECKOUT CORRECT" - git checkout $REAL_BRANCH + git checkout remotes/origin/$REAL_BRANCH git branch git config user.email "research@splunk.com"