feat(config): session scope + channel command policy + tool profiles #4067
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: PR Labeler | |
| on: | |
| pull_request_target: | |
| branches: [dev, main] | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| workflow_dispatch: | |
| inputs: | |
| mode: | |
| description: "Run mode for managed-label governance" | |
| required: true | |
| default: "audit" | |
| type: choice | |
| options: | |
| - audit | |
| - repair | |
| concurrency: | |
| group: pr-labeler-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| env: | |
| GIT_CONFIG_COUNT: "1" | |
| GIT_CONFIG_KEY_0: core.hooksPath | |
| GIT_CONFIG_VALUE_0: /dev/null | |
| LABEL_POLICY_PATH: .github/label-policy.json | |
| jobs: | |
| label: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Apply path labels | |
| if: github.event_name == 'pull_request_target' | |
| uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 | |
| continue-on-error: true | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| sync-labels: true | |
| - name: Apply size/risk/module labels | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 | |
| continue-on-error: true | |
| env: | |
| LABEL_POLICY_PATH: .github/label-policy.json | |
| with: | |
| script: | | |
| const script = require('./.github/workflows/scripts/pr_labeler.js'); | |
| await script({ github, context, core }); |