--- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json name: "Labeler" on: workflow_dispatch: pull_request_target: branches: ["main"] jobs: labeler: name: Labeler runs-on: ubuntu-latest permissions: contents: read pull-requests: write steps: - name: Generate Token uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2 id: app-token with: app-id: "${{ secrets.BOT_APP_ID }}" private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" - name: Labeler uses: actions/labeler@v6 with: repo-token: "${{ steps.app-token.outputs.token }}" configuration-path: .github/labeler.yaml