The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Send the python-runner clone token as an auth header (#84855)
Nemanja Glumac1a57c46dd4bf
diff --git a/.github/scripts/setup-python-runner.sh b/.github/scripts/setup-python-runner.shindex 2980d50ab82..52ca501cdb4 100755--- a/.github/scripts/setup-python-runner.sh+++ b/.github/scripts/setup-python-runner.sh@@ -19,7 +19,9 @@ while [[ $# -gt 0 ]]; dodoneecho "Cloning python-runner repository..."-git clone --depth 1 https://${METABASE_AUTOMATION_USER_TOKEN}@github.com/metabase/python-runner-container.git python-runner+# Send the token as a header: git keeps it on the same-host redirect, but drops credentials embedded in the URL.+AUTH_HEADER="Authorization: Basic $(printf 'x-access-token:%s' "$METABASE_AUTOMATION_USER_TOKEN" | base64 -w0)"+git -c http.extraHeader="$AUTH_HEADER" clone --depth 1 https://github.com/metabase/python-runner-container.git python-runnerif [ "$SKIP_START" = false ]; thenecho "Starting python-runner..."