Skip to content

Commit 4b608f0

Browse files
authored
Merge pull request #2592 from pytorch/cleanup-aws-credentials-v2
Clean up AWS credentials
2 parents 5f66ade + 6434d77 commit 4b608f0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626

2727
build:
2828
needs: generate-matrix
29+
permissions:
30+
id-token: write
31+
contents: read
2932
strategy:
3033
fail-fast: false
3134
matrix:
@@ -50,9 +53,6 @@ jobs:
5053
package-name: ${{ matrix.package-name }}
5154
smoke-test-script: ${{ matrix.smoke-test-script }}
5255
trigger-event: ${{ github.event_name }}
53-
secrets:
54-
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
55-
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
5656

5757
tests-py-torchscript-fe:
5858
name: Test torchscript frontend [Python]

.github/workflows/linux-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
CU_VERSION: ${{ matrix.desired_cuda }}
6868
SCRIPT: ${{ inputs.script }}
6969
RUNNER_TEST_RESULTS_DIR: /tmp/test_results
70+
ARCH: ${{ inputs.architecture }}
7071
name: ${{ inputs.job-name }}-${{ matrix.desired_cuda }}
7172
runs-on: ${{ matrix.validation_runner }}
7273
container:
@@ -100,6 +101,8 @@ jobs:
100101
ref: ${{ inputs.ref }}
101102
setup-miniconda: ${{ inputs.setup-miniconda }}
102103
python-version: ${{ env.PYTHON_VERSION }}
104+
cuda-version: ${{ env.CU_VERSION }}
105+
arch: ${{ env.ARCH }}
103106
- name: Run Pre-Script with Caching
104107
if: ${{ inputs.pre-script != '' }}
105108
uses: ./test-infra/.github/actions/run-script-with-cache
@@ -191,4 +194,4 @@ jobs:
191194

192195
concurrency:
193196
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
194-
cancel-in-progress: true
197+
cancel-in-progress: true

0 commit comments

Comments
 (0)