Unverified Commit b2d9c3e3 authored by Huy Do's avatar Huy Do Committed by GitHub
Browse files

Remove AWS credentials on workflows (#3723) (#3723)

Summary:
This is not needed anymore after https://github.com/pytorch/test-infra/pull/4865.


Reviewed By: malfet, jeanschmidt, clee2000, NicolasHug

Differential Revision: D52735187

Pulled By: huydhn
parent e3efbc2d
...@@ -17,6 +17,10 @@ concurrency: ...@@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
...@@ -46,6 +50,3 @@ jobs: ...@@ -46,6 +50,3 @@ jobs:
runner-type: macos-m1-12 runner-type: macos-m1-12
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
trigger-event: ${{ github.event_name }} trigger-event: ${{ github.event_name }}
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
...@@ -17,6 +17,10 @@ concurrency: ...@@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
...@@ -50,6 +54,3 @@ jobs: ...@@ -50,6 +54,3 @@ jobs:
trigger-event: ${{ github.event_name }} trigger-event: ${{ github.event_name }}
architecture: aarch64 architecture: aarch64
setup-miniconda: false setup-miniconda: false
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
...@@ -17,6 +17,10 @@ concurrency: ...@@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
...@@ -45,6 +49,3 @@ jobs: ...@@ -45,6 +49,3 @@ jobs:
smoke-test-script: ${{ matrix.smoke-test-script }} smoke-test-script: ${{ matrix.smoke-test-script }}
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
trigger-event: ${{ github.event_name }} trigger-event: ${{ github.event_name }}
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
...@@ -17,6 +17,10 @@ concurrency: ...@@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
...@@ -46,6 +50,3 @@ jobs: ...@@ -46,6 +50,3 @@ jobs:
runner-type: macos-12 runner-type: macos-12
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
trigger-event: ${{ github.event_name }} trigger-event: ${{ github.event_name }}
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
...@@ -13,6 +13,10 @@ on: ...@@ -13,6 +13,10 @@ on:
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
workflow_dispatch: workflow_dispatch:
permissions:
id-token: write
contents: read
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
...@@ -44,6 +48,3 @@ jobs: ...@@ -44,6 +48,3 @@ jobs:
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
smoke-test-script: ${{ matrix.smoke-test-script }} smoke-test-script: ${{ matrix.smoke-test-script }}
trigger-event: ${{ github.event_name }} trigger-event: ${{ github.event_name }}
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment