Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
7267ceee
Unverified
Commit
7267ceee
authored
Apr 24, 2026
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Apr 24, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci] Populate GITHUB_TOKEN for auto-labeler (#93219)
parent
0fdd6902
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
action.yml
.github/actions/pr-auto-label/action.yml
+7
-5
pull_request_auto_label.yml
.github/workflows/pull_request_auto_label.yml
+2
-2
No files found.
.github/actions/pr-auto-label/action.yml
View file @
7267ceee
...
@@ -4,11 +4,13 @@ description: >-
...
@@ -4,11 +4,13 @@ description: >-
the config in this action's src/config.json.
the config in this action's src/config.json.
#
This action deliberately has no inputs. It reads `GITHUB_TOKEN` from the
#
This action deliberately has no inputs. It reads `GITHUB_TOKEN` from the
#
environment, which GitHub Actions populates with the job's own token.
#
environment, which the calling workflow must set via `env:` — typically
#
Exposing a `github-token` input would let callers pass an unrelated
#
to `${{ secrets.GITHUB_TOKEN }}`, the job's own token scoped by the
#
(potentially higher-privileged) token from a fork-controlled context;
#
workflow's `permissions:` block. Exposing a `github-token` input would
#
forcing the use of the job token keeps the principle of least privilege
#
let callers pass an unrelated (potentially higher-privileged) token from
#
tied to the workflow's declared `permissions:` block.
#
a fork-controlled context; forcing the use of the job token via `env:`
#
keeps the principle of least privilege tied to the workflow's declared
#
`permissions:` block.
r
uns:
r
uns:
using: 'node24'
using: 'node24'
main: 'dist/index.js'
main: 'dist/index.js'
.github/workflows/pull_request_auto_label.yml
View file @
7267ceee
...
@@ -59,9 +59,9 @@ jobs:
...
@@ -59,9 +59,9 @@ jobs:
if
:
github.repository_owner == 'vercel'
if
:
github.repository_owner == 'vercel'
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
permissions
:
permissions
:
# To checkout the action
contents
:
read
# To add labels
# To add labels
pull-requests
:
write
pull-requests
:
write
steps
:
steps
:
-
uses
:
vercel/next.js/.github/actions/pr-auto-label@canary
-
uses
:
vercel/next.js/.github/actions/pr-auto-label@canary
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment