Skip to content

fix(harden-runner-required): add step-security/harden-runner to workflow jobs #1110

fix(harden-runner-required): add step-security/harden-runner to workflow jobs

fix(harden-runner-required): add step-security/harden-runner to workflow jobs #1110

Workflow file for this run

name: ci
on:
push:
branches: [main, beta, alpha]
pull_request:
jobs:
lint_test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@b09bb98e06d4d774595224525879c09bc6e98c40 # v2
with:
egress-policy: audit
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "path=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v5
with:
path: ${{ steps.yarn-cache-dir-path.outputs.path }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run install
run: yarn install --frozen-lockfile
- name: Run lint
run: yarn lint
- name: Run test
run: yarn test