From da13241a1a6f0ced92ad1082140cf9cfdd0ac932 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Tue, 12 Dec 2023 14:54:16 -0800 Subject: [PATCH] update --- .github/workflows/update-slow-tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-slow-tests.yml b/.github/workflows/update-slow-tests.yml index 4fe00a7e85..13c70e6abb 100644 --- a/.github/workflows/update-slow-tests.yml +++ b/.github/workflows/update-slow-tests.yml @@ -7,6 +7,10 @@ on: # Have the ability to trigger this job manually workflow_dispatch: +permissions: + id-token: write + contents: read + defaults: run: working-directory: torchci @@ -31,10 +35,13 @@ jobs: user_email: 'test-infra@pytorch.org' user_name: 'PyTorch Test Infra' commit_message: 'Updating slow tests stats' + - name: configure aws credentials + id: aws_creds + uses: aws-actions/configure-aws-credentials@v1.7.0 + with: + role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_update-slow-tests + aws-region: us-east-1 - name: Upload file to s3 run: | python3 -mpip install awscli==1.27.69 aws s3 cp "slow-tests.json" s3://ossci-metrics/slow-tests.json - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}