Skip to content

Commit 5384ba8

Browse files
authored
chore: clean up AWS credentials PR changes (#2608)
1 parent e8514f2 commit 5384ba8

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.github/workflows/assigner.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616

1717
jobs:
1818
assign:
19+
permissions:
20+
contents: read
21+
pull-requests: write
1922
runs-on: ubuntu-latest
2023
steps:
2124
- name: Checkout

.github/workflows/build-test.yml

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

2828
build:
2929
needs: generate-matrix
30+
permissions:
31+
id-token: write
32+
contents: read
3033
strategy:
3134
fail-fast: false
3235
matrix:
@@ -51,9 +54,6 @@ jobs:
5154
package-name: ${{ matrix.package-name }}
5255
smoke-test-script: ${{ matrix.smoke-test-script }}
5356
trigger-event: ${{ github.event_name }}
54-
secrets:
55-
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
56-
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
5757

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

.github/workflows/label.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ on: [pull_request_target]
1010

1111
jobs:
1212
label:
13-
13+
permissions:
14+
contents: read
15+
pull-requests: write
1416
runs-on: ubuntu-latest
1517

1618
steps:
17-
- uses: actions/labeler@v2
19+
- uses: actions/labeler@v4
1820
with:
1921
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2022
configuration-path: .github/pr-labels.yml

.github/workflows/linux-test.yml

Lines changed: 3 additions & 0 deletions
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

0 commit comments

Comments
 (0)