mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-20 14:31:05 +01:00
Mutable action tags are a supply-chain risk: a moved tag runs different code without a diff. Every workflow action is now pinned through .github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync or tampered one fails instead of running.
24 lines
505 B
YAML
24 lines
505 B
YAML
name: Worker tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths: [worker/**, .github/workflows/worker-tests.yml]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@v7.0.1
|
|
- uses: actions/setup-node@v7.1.0
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: node --test worker/index.test.mjs
|