Summary
The label GitHub Action is failing on PRs with:
The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api
Warning: The config file was not found at .github/labeler.yml
Error: HttpError: Not Found
This causes PR checks to fail for contributors.
Workflow Affected
- File:
.github/workflows/label.yml
- Action:
actions/labeler@v5.0.0
- Trigger:
pull_request_target
Current Behavior
label job fails even when PR changes are valid.
Expected Behavior
label job should:
- Resolve
.github/labeler.yml reliably from base branch context, or
- Skip with warning (not fail PR) if config is missing.
Impact
- Blocks/interrupts PR flow.
- Adds noisy CI failures unrelated to code quality.
- Affects contributor experience across repo PRs.
Proposed Fix
Update .github/workflows/label.yml to:
- Checkout base branch first (
actions/checkout@v4 with github.event.pull_request.base.ref)
- Verify
.github/labeler.yml exists
- Run
actions/labeler@v5 with explicit:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
- If config missing, warn + skip label step instead of failing workflow
Also ensure .github/labeler.yml exists on the repository base/default branch.
Acceptance Criteria
label workflow no longer fails with config 404.
- PRs are not blocked by labeler config lookup issues.
- Labels are applied when
.github/labeler.yml is present.
Summary
The
labelGitHub Action is failing on PRs with:The configuration file (path: .github/labeler.yml) was not found locally, fetching via the apiWarning: The config file was not found at .github/labeler.ymlError: HttpError: Not FoundThis causes PR checks to fail for contributors.
Workflow Affected
.github/workflows/label.ymlactions/labeler@v5.0.0pull_request_targetCurrent Behavior
labeljob fails even when PR changes are valid.Expected Behavior
labeljob should:.github/labeler.ymlreliably from base branch context, orImpact
Proposed Fix
Update
.github/workflows/label.ymlto:actions/checkout@v4withgithub.event.pull_request.base.ref).github/labeler.ymlexistsactions/labeler@v5with explicit:repo-token: ${{ secrets.GITHUB_TOKEN }}configuration-path: .github/labeler.ymlAlso ensure
.github/labeler.ymlexists on the repository base/default branch.Acceptance Criteria
labelworkflow no longer fails with config 404..github/labeler.ymlis present.