diff --git a/.github/workflows/cortex_m_virtual_hardware.yml b/.github/workflows/cortex_m_virtual_hardware.yml index ea5591cf0d3fd34bbff0379b4ea9b21acf67027d..16cece6832bfaf44179393dfabf7ae1cefe275c6 100644 --- a/.github/workflows/cortex_m_virtual_hardware.yml +++ b/.github/workflows/cortex_m_virtual_hardware.yml @@ -16,8 +16,6 @@ on: env: - AWS_ACCESS_KEY_ID: ${{ secrets.ARM_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.ARM_AWS_ACCESS_KEY_SECRET }} AWS_DEFAULT_REGION: ${{ secrets.ARM_AWS_DEFAULT_REGION }} AWS_S3_BUCKET_NAME: ${{ secrets.ARM_AWS_S3_BUCKET_NAME }} AWS_IAM_PROFILE: ${{ secrets.ARM_AWS_IAM_PROFILE }} @@ -27,6 +25,9 @@ env: jobs: cortex_m_generic: runs-on: ubuntu-latest + permissions: + id-token: write + contents: read if: | github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro') @@ -39,7 +40,12 @@ jobs: python-version: '3.10' - name: Install AVH Client for Python run: | - pip install git+https://github.com/ARM-software/avhclient.git@v0.1.1 + pip install git+https://github.com/ARM-software/avhclient.git@v0.1 + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + role-to-assume: arn:aws:iam::720528183931:role/Proj-vht-assume-role + aws-region: eu-west-1 - name: Execute test suite on Arm Virtual Hardware at AWS run: | avhclient -b aws execute --specfile ./tensorflow/lite/micro/tools/github/arm_virtual_hardware/cortex_m_generic_avh.yml