Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oidc] Update slow test workflow switch to oidc #4802

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}