Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ concurrency:

jobs:

labeler:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: lablup/auto-labeler@main


lint-and-typecheck:
if: |
!contains(github.event.pull_request.labels.*.name, 'skip:ci')
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: labeler

on:
pull_request_target:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
labeler:
runs-on: ubuntu-latest
permissions:
contents: read
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Labeling a PR typically requires issues: write because PR labels are managed via the Issues API. With only pull-requests: write, the action may still hit 403s when trying to apply labels. Add issues: write (and keep pull-requests: write if the action needs it) to ensure labeling succeeds.

Suggested change
contents: read
contents: read
issues: write

Copilot uses AI. Check for mistakes.
pull-requests: write
steps:
- uses: lablup/auto-labeler@main
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a third-party action pinned to a moving ref (@main) is risky, and this is especially sensitive with pull_request_target since the workflow runs with elevated permissions. Pin the action to an immutable commit SHA (preferred) or a version tag to reduce supply-chain risk.

Suggested change
- uses: lablup/auto-labeler@main
- uses: lablup/auto-labeler@v1

Copilot uses AI. Check for mistakes.
1 change: 1 addition & 0 deletions changes/9610.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Separate labeler workflow into standalone file to fix 403 permission errors on fork PRs