Skip to content

Commit 46aa2c2

Browse files
authored
Add token config (#9)
1 parent 1874ece commit 46aa2c2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/_ascend_npu_build_torch_npu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
5959
- name: Checkout
6060
uses: actions/checkout@v4
61+
with:
62+
token: ${{ secrets.ASCEND_RUNNER_TOKEN }}
6163

6264
- name: Checkout torch_npu
6365
uses: actions/checkout@v4

.github/workflows/ascend_npu_test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ jobs:
133133
image: ${{ needs.prepare.outputs.image }}
134134
device: ${{ needs.prepare.outputs.device }}
135135
torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
136-
username: ${{ secrets.RUNNER_USERNAME }}
137-
token: ${{ secrets.ASCEND_RUNNER_TOKEN }}
138136

139137
test:
140138
name: Test torch_npu
@@ -152,8 +150,6 @@ jobs:
152150
device: ${{ needs.prepare.outputs.device }}
153151
torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
154152
torch-npu-artifact: ${{ needs.build.outputs.torch-npu-artifact }}
155-
username: ${{ secrets.RUNNER_USERNAME }}
156-
token: ${{ secrets.ASCEND_RUNNER_TOKEN }}
157153

158154
benchmark:
159155
name: Run benchmarks
@@ -172,7 +168,5 @@ jobs:
172168
device: ${{ needs.prepare.outputs.device }}
173169
torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
174170
torch-npu-artifact: ${{ needs.build.outputs.torch-npu-artifact }}
175-
username: ${{ secrets.RUNNER_USERNAME }}
176-
token: ${{ secrets.ASCEND_RUNNER_TOKEN }}
177171
secrets:
178172
pr-token: ${{ secrets.ASCEND_RUNNER_TOKEN }}

0 commit comments

Comments
 (0)