Skip to content

Commit d321026

Browse files
authored
Use pull_request_target and don't use uv (NVIDIA#2702)
1 parent 3d1a5c8 commit d321026

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/oncall-assign.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
name: Oncall Assign
1616

1717
on:
18-
pull_request:
18+
pull_request_target:
1919
types: [labeled, ready_for_review]
2020

2121
permissions:
@@ -40,9 +40,11 @@ jobs:
4040
with:
4141
python-version: '3.10'
4242

43+
- name: Install dependencies
44+
run: pip install requests
45+
4346
- name: Assign Reviewer
4447
env:
4548
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4649
run: |
47-
pip install --no-cache-dir uv
48-
uv run python .github/scripts/oncall_manager.py assign --pr ${{ github.event.pull_request.number }}
50+
python .github/scripts/oncall_manager.py assign --pr ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)