Files
Dylan M. Taylor f60549225c ci: run Harden-Runner on every job (#2)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:42:05 -05:00

38 lines
802 B
YAML

name: Spark CI Linux
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: spark
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['22.x']
steps:
- name: Harden runner
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
with:
egress-policy: audit
- name: Use Node.js ${{ matrix['node-version'] }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix['node-version'] }}
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Tests
run: npm run test