diff --git a/.github/workflows/universal_workflow_light.yaml b/.github/workflows/universal_workflow_light.yaml index 24ba4be9..e84c6761 100644 --- a/.github/workflows/universal_workflow_light.yaml +++ b/.github/workflows/universal_workflow_light.yaml @@ -343,8 +343,10 @@ jobs: - name: 'Run composer for each module' shell: bash + env: + GH_TOKEN: ${{ github.token }} run: | - git clone --depth=1 --quiet --branch v2.0.0 https://github.com/joernott/load_testplan.git load_testplan + git clone --depth=1 --quiet --branch v2.0.0 "https://x-access-token:${GH_TOKEN}@github.com/joernott/load_testplan.git" load_testplan LOAD_TESTPLAN=$(find ./load_testplan -iname 'main-linux-amd64-*') chmod a+x "${LOAD_TESTPLAN}" PREFIXES=$(echo '${{steps.iltp.outputs.runscript_matrix_script}}'|tr ',' '\n'|tr -d '[]" '|sed -e 's|-|_|g' -e 's|:.*||'|sort|uniq) diff --git a/prepare_shop/action.yaml b/prepare_shop/action.yaml index f51e8d0c..031d247b 100644 --- a/prepare_shop/action.yaml +++ b/prepare_shop/action.yaml @@ -195,7 +195,12 @@ runs: REF='${{ inputs.git_sdk_ref }}' git init git config advice.detachedHead false - git remote add origin https://github.com/${{ inputs.git_sdk_repository }}.git + if [ -n "${{ inputs.enterprise_github_token }}" ]; then + URL="https://oxidci:${{ inputs.enterprise_github_token }}@github.com/${{ inputs.git_sdk_repository }}.git" + else + URL="https://github.com/${{ inputs.git_sdk_repository }}.git" + fi + git remote add origin "${URL}" git -c protocol.version=2 fetch \ --no-tags --prune --no-recurse-submodules \ --filter=blob:none --depth=1 \