-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[oidc] Update slow test workflow switch to oidc (#4802)
Corresponding PR : pytorch-labs/pytorch-gha-infra#307 Test in prod? (its already broken anyways)
- Loading branch information
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: '[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 }} |