Skip to content

chore: knip qa

chore: knip qa #22

Workflow file for this run

name: Knip
on:
pull_request_target:
permissions:
checks: write
issues: write
jobs:
run-knip:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.10.0
- name: Install toolchain
run: yarn install --mode=skip-build
- name: Get GitHub App token
uses: tibdex/[email protected]
id: get_installation_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Report knip results to pull request
uses: Codex-/knip-reporter@v2
env:
GITHUB_TOKEN: ${{ env.KNIP_TOKEN_FINE_GRAINED }}
with:
verbose: true
comment_id: ${{ github.workflow }}-reporter
command_script_name: knip-ci
annotations: true
ignore_results: false
token: ${{ steps.get_installation_token.outputs.token }}