From c2527f19a109c95274ad3e007937bca55665b633 Mon Sep 17 00:00:00 2001 From: Dmitrii Pichulin Date: Wed, 3 Apr 2024 22:58:22 +0300 Subject: [PATCH 1/2] try fetch instead of clone --- .github/workflows/codeql-analysis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3e8ca38..d5bd2f5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,9 +26,11 @@ jobs: git submodule update --init --recursive --depth 1 CHROMIUM_TAG=$(cat VERSION) BORINGSSL_REVISION=$(curl -s https://raw.githubusercontent.com/chromium/chromium/$CHROMIUM_TAG/DEPS | grep "'boringssl_revision':" | awk -F"'" '{print $4}') - git clone https://github.com/google/boringssl.git + mkdir boringssl cd boringssl - git checkout -b temp $BORINGSSL_REVISION + git init + git remote add origin https://github.com/google/boringssl.git + git fetch origin $BORINGSSL_REVISION git config user.name "temp" git config user.email "temp@temp.temp" git am --3way --ignore-space-change < ../patch/boringssl.patch From 5ac15b5c2aeb7058d041067318d86e7908a63c53 Mon Sep 17 00:00:00 2001 From: Dmitrii Pichulin Date: Wed, 3 Apr 2024 23:06:02 +0300 Subject: [PATCH 2/2] be quite and checkout --- .github/workflows/codeql-analysis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d5bd2f5..1206f9c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,9 +28,10 @@ jobs: BORINGSSL_REVISION=$(curl -s https://raw.githubusercontent.com/chromium/chromium/$CHROMIUM_TAG/DEPS | grep "'boringssl_revision':" | awk -F"'" '{print $4}') mkdir boringssl cd boringssl - git init + git init -q . git remote add origin https://github.com/google/boringssl.git git fetch origin $BORINGSSL_REVISION + git checkout -b temp $BORINGSSL_REVISION git config user.name "temp" git config user.email "temp@temp.temp" git am --3way --ignore-space-change < ../patch/boringssl.patch