Skip to content

fix: Resolve security vulnerabilities #41

fix: Resolve security vulnerabilities

fix: Resolve security vulnerabilities #41

Workflow file for this run

on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
name: CI
permissions: {}
jobs:
eslint:
permissions:
contents: read # for actions/checkout to fetch code
name: ESLint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 24
cache: yarn
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
test:
permissions:
contents: read # for actions/checkout to fetch code
name: Test
needs: eslint
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: ${{ github.actor == 'dependabot[bot]' && fromJson('["ubuntu-latest"]') || fromJson('["ubuntu-latest", "macos-latest"]') }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 24
cache: yarn
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn cover