fix(build): resolve Vercel deployment failure, case mismatch, duplica… #688
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 JS Script | |
| env: | |
| # Safely map the GitHub context to an environment variable first | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| // Safely read from process.env to avoid interpolation syntax collisions | |
| const issueTitle = process.env.ISSUE_TITLE; | |
| console.log(issueTitle); |