Skip to content

Commit

Permalink
pass azure IOT secrets to composite actions via the inputs
Browse files Browse the repository at this point in the history
Signed-off-by: yash-zededa <[email protected]>
  • Loading branch information
yash-zededa authored and uncleDecart committed Aug 26, 2024
1 parent 01d3a03 commit e4ee32d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/run-eden-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4ee32d

Please sign in to comment.