The job is failing because the actions/labeler@v5 action lacks the necessary permissions to add labels to pull requests. The error message states: "Resource not accessible by integration."
Root Cause
The workflow permissions are insufficient. While the workflow has pull requests: write permission (line 8), the actions/labeler action requires additional access. The configuration file (.github/labeler.yml) is being fetched via the API, which also needs proper permissions.
The job is failing because the actions/labeler@v5 action lacks the necessary permissions to add labels to pull requests. The error message states: "Resource not accessible by integration."
Root Cause
The workflow permissions are insufficient. While the workflow has pull requests: write permission (line 8), the actions/labeler action requires additional access. The configuration file (.github/labeler.yml) is being fetched via the API, which also needs proper permissions.