Skip to content

fix: Read github-token from input instead of env var (#5) #23

fix: Read github-token from input instead of env var (#5)

fix: Read github-token from input instead of env var (#5) #23

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test -- --run
- name: Build
run: npm run build
dogfood:
name: Self-test (dogfood)
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Run Dead Code Hunter on itself
uses: ./
with:
supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}