Skip to content

Commit

Permalink
[oidc] Update slow test workflow switch to oidc (#4802)
Browse files Browse the repository at this point in the history
Corresponding PR :
pytorch-labs/pytorch-gha-infra#307

Test in prod? (its already broken anyways)
  • Loading branch information
clee2000 authored Dec 15, 2023
1 parent 894576b commit 42b5db8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/update-slow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,10 +35,13 @@ jobs:
user_email: '[email protected]'
user_name: 'PyTorch Test Infra'
commit_message: 'Updating slow tests stats'
- name: configure aws credentials
id: aws_creds
uses: aws-actions/[email protected]
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 }}

0 comments on commit 42b5db8

Please sign in to comment.