feat: standardize API error responses #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Automatic Labeler | |
| on: | |
| issues: | |
| types: [opened, edited, reopened, assigned, unassigned] | |
| pull_request_target: | |
| types: [opened, edited, reopened, synchronize, ready_for_review] | |
| # Ensure least-privileged permissions are applied | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| label: | |
| name: Auto Labeling | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Base Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| # Always checkout the base branch to ensure untrusted PR code is never executed | |
| ref: ${{ github.event.repository.default_branch }} | |
| - name: Execute Labeler Script | |
| uses: actions/github-script@v8 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const labeler = require('./.github/scripts/labeler.js'); | |
| await labeler({ github, context, core }); |