Skip to content

Commit 8a8829e

Browse files
authored
Use GitHub App for OSS Triaging (#23019)
Instead of using a Personal Access Token, a GitHub app with read and write permissions for this repo was created. Added the client-id as a variable: EXECUTORCH_TRIAGE_APP_CLIENT_ID and private-key was stored in EXECUTORCH_TRIAGE_APP Part of adding "community: contribution" label to OSS issues and PRs (#22381)
1 parent 077885e commit 8a8829e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/workflows/add-unanswered-to-project.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,24 @@ on:
1212
paths:
1313
- .github/workflows/add-unanswered-to-project.yml
1414

15+
permissions: {}
16+
1517
jobs:
1618
add_to_project:
1719
runs-on: ubuntu-latest
1820
steps:
21+
- name: Generate executorch-triage installation token
22+
id: generate-token
23+
uses: actions/create-github-app-token@v3
24+
with:
25+
client-id: ${{ vars.EXECUTORCH_TRIAGE_CLIENT_ID }}
26+
private-key: ${{ secrets.EXECUTORCH_TRIAGE_APP }}
27+
owner: pytorch
28+
repositories: executorch
1929
- name: Add open issues and open, non-draft PRs to org project and label external PRs (excluding certain authors and bots)
2030
uses: actions/github-script@v7
2131
with:
22-
github-token: ${{ secrets.ET_EXT_CONTRIB }}
32+
github-token: ${{ steps.generate-token.outputs.token }}
2333
script: |
2434
const projectId = "PVT_kwDOAUB9vs4A_PUL"; // PyTorch org project 136
2535
const owner = 'pytorch';
@@ -53,7 +63,7 @@ jobs:
5363
"MatthiasHertel80", "AlexTawseArm", "jmahbs", "morgolock", "Christoffer-JL", "ArmRyan", "xingguo01", "tgonzalezorlandoarm",
5464
"chizkiyahu", "sarah-blades", "itsMarco-G", "usamahz", "Rob-Hughes-Arm", "swha815", "FabulousSuperDude",
5565
"haowhsu-quic", "shewu-quic", "winskuo-quic", "chunit-quic", "DannyYuyang-quic", "chuntl", "thchenqti", "jethroqti",
56-
"chenweng-quic", "qti-horodnic", "qti-mmadhava", "quic-boyuc", "zhaoxul-qti",
66+
"chenweng-quic", "qti-horodnic", "qti-mmadhava", "quic-boyuc", "zhaoxul-qti", "paul1106", "quic-xiyushi",
5767
"cymbalrush", "DenisVieriu97", "billmguo",
5868
"StrycekSimon", "jirioc", "robert-kalmar", "skywall", "MartinPavella", "roman-janik-nxp", "novak-vaclav", "irtrukhina",
5969
"neuropilot-captain", "dijopaul", "cad-rlc", "cad-audio", "ynimmaga", "daniil-lyakhov",

0 commit comments

Comments
 (0)