From 457f4e33376f1b1d72c2f73e825cb0dcb8401c4c Mon Sep 17 00:00:00 2001 From: Will McDonald Date: Sun, 30 Jul 2023 15:00:05 +0100 Subject: [PATCH] Add named pipe for in-memory credential. --- .github/workflows/ee-run.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ee-run.yml b/.github/workflows/ee-run.yml index 91a119c..e508d53 100644 --- a/.github/workflows/ee-run.yml +++ b/.github/workflows/ee-run.yml @@ -43,14 +43,25 @@ jobs: cat > ${GITHUB_WORKSPACE}/${MACHINE_ROLE}/project/playbook.yml < ${GITHUB_WORKSPACE}/${MACHINE_ROLE}/env/passwords & + --- + "^SSH password:\\s*?$": "${{ secrets.OS_PASSWORD }}" + "^BECOME password.*:\\s*?$": "${{ secrets.OS_PASSWORD }}" + EOF - name: Test run the Azure execution environment image run: | + docker run --rm -u root -v ${PWD}/${MACHINE_ROLE}:/runner -v /home/runner/.azure/:/root/.azure/ -e RUNNER_PLAYBOOK=playbook.yml -e ANSIBLE_INVENTORY=/runner/inventory ${CONTAINER_REGISTRY_URL}/ansible/${EE_AZURE_IMAGE_NAME} ansible-runner run /runner docker run --rm -u root -v ${GITHUB_WORKSPACE}/${MACHINE_ROLE}:/runner -v /home/runner/.azure/:/root/.azure/ -e RUNNER_PLAYBOOK=playbook.yml -e ANSIBLE_INVENTORY=/runner/inventory ${CONTAINER_REGISTRY_URL}/${GITHUB_ACTOR}/${EE_AZURE_IMAGE_NAME} ansible-inventory --graph - - # docker run --rm -u root -v ${PWD}/${MACHINE_ROLE}:/runner -v /home/runner/.azure/:/root/.azure/ -e RUNNER_PLAYBOOK=playbook.yml -e ANSIBLE_INVENTORY=/runner/inventory ${CONTAINER_REGISTRY_URL}/ansible/${EE_AZURE_IMAGE_NAME} ansible-runner run /runner \ No newline at end of file + \ No newline at end of file