From e4ee32d89b8ac0394041c01ab37e77dd0e29cec1 Mon Sep 17 00:00:00 2001 From: yash-zededa Date: Mon, 26 Aug 2024 12:13:14 +0200 Subject: [PATCH] pass azure IOT secrets to composite actions via the inputs Signed-off-by: yash-zededa --- .github/actions/run-eden-test/action.yml | 10 ++++++++++ .github/workflows/test.yml | 3 +++ 2 files changed, 13 insertions(+) diff --git a/.github/actions/run-eden-test/action.yml b/.github/actions/run-eden-test/action.yml index 28a9b1d99..1b1663c54 100644 --- a/.github/actions/run-eden-test/action.yml +++ b/.github/actions/run-eden-test/action.yml @@ -27,6 +27,13 @@ inputs: type: string required: false default: '' + aziot_id_scope: + description: 'Azure IoT ID scope' + required: false + aziot_connection_string: + description: 'Azure IoT connection string' + required: false + runs: using: 'composite' @@ -55,6 +62,9 @@ runs: run: EDEN_TEST_STOP=n ./eden test ./tests/workflow -s ${{ inputs.suite }} -v debug shell: bash working-directory: "./eden" + env: + AZIOT_ID_SCOPE: ${{ inputs.aziot_id_scope }} + AZIOT_CONNECTION_STRING: ${{ inputs.aziot_connection_string }} - name: Collect info if: failure() uses: ./eden/.github/actions/collect-info diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 103bea4ab..eb9117015 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -73,6 +73,9 @@ jobs: artifact_run_id: ${{ inputs.artifact_run_id }} docker_account: ${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }} docker_token: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }} + aziot_id_scope: ${{ secrets.AZIOT_ID_SCOPE }} + aziot_connection_string: ${{ secrets.AZIOT_CONNECTION_STRING }} + networking: name: Networking test suite