Skip to content

Commit

Permalink
Revert "Revert "Revert "[oidc] Update linux wheels job to use oidc" (#…
Browse files Browse the repository at this point in the history
…4840)"" (#4842)

Reverts #4841
  • Loading branch information
atalman authored Dec 20, 2023
1 parent 3d7c5e8 commit ccb20f3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ on:
required: false
type: boolean
default: true

permissions:
id-token: write
contents: read
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID:
description: "AWS Access Key passed from caller workflow"
required: false
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY:
description: "AWS Secret Access Ket passed from caller workflow"
required: false

jobs:
build:
Expand Down Expand Up @@ -112,12 +115,6 @@ jobs:
repository: ${{ inputs.test-infra-repository }}
ref: ${{ inputs.test-infra-ref }}
path: test-infra
- name: configure aws credentials
if: ${{ (inputs.trigger-event == 'push' && startsWith(github.event.ref, 'refs/heads/nightly')) || (env.CHANNEL == 'test' && startsWith(github.event.ref, 'refs/tags/')) }}
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_build_wheels_linux
aws-region: us-east-1
- uses: actions/checkout@v3
if: ${{ env.ARCH == 'aarch64' }}
with:
Expand Down Expand Up @@ -237,6 +234,9 @@ jobs:
if: ${{ (inputs.trigger-event == 'push' && startsWith(github.event.ref, 'refs/heads/nightly')) || (env.CHANNEL == 'test' && startsWith(github.event.ref, 'refs/tags/')) }}
shell: bash -l {0}
working-directory: ${{ inputs.repository }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
run: |
set -euxo pipefail
source "${BUILD_ENV_FILE}"
Expand Down

0 comments on commit ccb20f3

Please sign in to comment.