Skip to content

Commit 1b923b4

Browse files
committed
[build] use personal PAT to add comments and labels to PRs from forks
1 parent 1e21477 commit 1b923b4

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/label-commenter.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter
1+
# Configuration for Label Commenter - ./.github/label-commenter-config.yml
22
name: Label Commenter
33

44
on:
@@ -16,6 +16,11 @@ jobs:
1616
if: github.repository_owner == 'seleniumhq'
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- name: Checkout repo to get config file
20+
uses: actions/checkout@v4
2021
- name: Label Commenter
2122
uses: peaceiris/actions-label-commenter@v1
23+
with:
24+
# The individual PAT is needed so commenter can auto-executes on PRs from Forks
25+
# It expires 4/1/2026
26+
github_token: ${{ secrets.LABEL_COMMENTER_PAT }}

.github/workflows/pr-labeler.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Configuration for Label Generation - ./.github/pr-labeler-config.yml
12
name: Label pull requests based on file paths
23

34
on:
@@ -14,7 +15,10 @@ jobs:
1415
steps:
1516
- name: Checkout repository
1617
uses: actions/checkout@v4
17-
- uses: actions/labeler@v5
18+
- name: Auto label Pull Requests
19+
uses: actions/labeler@v5
1820
with:
19-
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
# The individual PAT is needed so labeler auto-executes this workflow
22+
# It expires 4/1/2026
23+
repo-token: ${{ secrets.PR_LABELER_PAT }}
2024
configuration-path: .github/pr-labeler-config.yml

0 commit comments

Comments
 (0)