From 38b794032bf8fecfd7de7edfef7d0741c4e940d1 Mon Sep 17 00:00:00 2001 From: laurentsimon <64505099+laurentsimon@users.noreply.github.com> Date: Fri, 11 Feb 2022 07:26:34 -0800 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 70a7215d..e4bf0b54 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,7 +48,7 @@ export ENABLED_CHECKS= # # Boolean inputs are strings https://github.com/actions/runner/issues/1483. # =============================================================================== -curl -s -H "Authorization: Bearer $GITHUB_AUTH_TOKEN" https://api.github.com/repos/$GITHUB_REPOSITORY > repo_info.json +curl -s -H "Authorization: Bearer $GITHUB_AUTH_TOKEN" "https://api.github.com/repos/$GITHUB_REPOSITORY" | tee repo_info.json export SCORECARD_PRIVATE_REPOSITORY="$(cat repo_info.json | jq -r '.private')" export SCORECARD_DEFAULT_BRANCH="refs/heads/$(cat repo_info.json | jq -r '.default_branch')" rm repo_info.json @@ -127,4 +127,4 @@ else fi fi -jq '.' "$SCORECARD_RESULTS_FILE" \ No newline at end of file +jq '.' "$SCORECARD_RESULTS_FILE"