Skip to content

Commit 93a5ab0

Browse files
committed
Authenticate docker-eshop-sdk and load testplan clones
1 parent 1d0fc61 commit 93a5ab0

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/universal_workflow_light.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ jobs:
308308

309309
- name: 'Prepare Shop'
310310
id: prepare_shop
311-
uses: 'OXID-eSales/github-actions/prepare_shop@v5'
311+
uses: 'OXID-eSales/github-actions/prepare_shop@v0'
312312
with:
313313
container_name: ${{ steps.iltp.outputs.install_container_name }}
314314
container_options: ${{ steps.iltp.outputs.install_container_options }}
@@ -343,8 +343,10 @@ jobs:
343343

344344
- name: 'Run composer for each module'
345345
shell: bash
346+
env:
347+
GH_TOKEN: ${{ github.token }}
346348
run: |
347-
git clone --depth=1 --quiet --branch v2.0.0 https://github.com/joernott/load_testplan.git load_testplan
349+
git clone --depth=1 --quiet --branch v2.0.0 "https://x-access-token:${GH_TOKEN}@github.com/joernott/load_testplan.git" load_testplan
348350
LOAD_TESTPLAN=$(find ./load_testplan -iname 'main-linux-amd64-*')
349351
chmod a+x "${LOAD_TESTPLAN}"
350352
PREFIXES=$(echo '${{steps.iltp.outputs.runscript_matrix_script}}'|tr ',' '\n'|tr -d '[]" '|sed -e 's|-|_|g' -e 's|:.*||'|sort|uniq)

prepare_shop/action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ runs:
195195
REF='${{ inputs.git_sdk_ref }}'
196196
git init
197197
git config advice.detachedHead false
198-
git remote add origin https://github.com/${{ inputs.git_sdk_repository }}.git
198+
if [ -n "${{ inputs.enterprise_github_token }}" ]; then
199+
URL="https://oxidci:${{ inputs.enterprise_github_token }}@github.com/${{ inputs.git_sdk_repository }}.git"
200+
else
201+
URL="https://github.com/${{ inputs.git_sdk_repository }}.git"
202+
fi
203+
git remote add origin "${URL}"
199204
git -c protocol.version=2 fetch \
200205
--no-tags --prune --no-recurse-submodules \
201206
--filter=blob:none --depth=1 \

0 commit comments

Comments
 (0)