Actions for the workflows of livingdocsIO repositories. They are built for our
self-hosted runners (runs-on: self-hosted, see
github-actions-self-hosted)
and several of them depend on what those runners prepare before the first step:
job tokens, repository clones, caches and the job's docker network.
| Action | What it does |
|---|---|
build |
docker/build-push-action with our registry cache, labels and a zstd push through crane |
checkout |
actions/checkout with full history and tags, no persisted credentials, and clones of other repositories |
container |
Runs a container on the job network, removed in the post step. Use it instead of services: when the service needs files from the checkout |
dependency-policy |
Fails a pull request on a dependency whose engines.node does not cover the package's own, or whose license is not on the allowlist, configured in .github/dependency-policy.json |
mkcert |
Throwaway CA with server and client certificates for TLS tests |
npm-tag-latest |
Moves npm latest to the current Livingdocs release branch |
patch-vulnerabilities |
npm audit fix in every directory with a lockfile, committed through the API so the commit is signed, with the fixed and remaining vulnerabilities per lockfile on the pull request and the job summary |
playwright |
Runs Playwright and uploads every failed test as an artifact while the run continues |
relcut |
relcut with our semantic-release settings from package.json. Replaces semantic-release |
semantic-release |
semantic-release with one of our presets |
semantic-release-check |
Shows on a pull request which version it would release, enforces conventional commits |
setup-node |
Node.js from the runner's node cache, with our npm defaults |
token |
Reads a GitHub token the runner minted for this job |
wait-for-datastores |
Waits until service containers and endpoints accept connections |
wait-for-workflow |
Waits for another workflow run on the same commit, e.g. Release waiting for Test |
Inputs and outputs are documented in each action.yml.
Pin every livingdocsIO/actions/* step to the same full commit SHA:
steps:
- uses: livingdocsIO/actions/checkout@9586d50b9a80a5a6f9e23f5e9f2d2f51be89c9d5
- uses: livingdocsIO/actions/setup-node@9586d50b9a80a5a6f9e23f5e9f2d2f51be89c9d5- Resolve the SHA, never extend a short hash by hand. A SHA that does not exist
fails the whole run with "Unable to resolve action".
sha=$(git rev-parse <ref>) && gh api repos/livingdocsIO/actions/commits/$sha --jq .sha
- A run uses the workflow files of the branch it runs on. Bumping the pin needs
one pull request per maintained
release-YYYY-MMbranch, not only one onmain.
A push, tag or pull request made with GITHUB_TOKEN (secrets.GITHUB_TOKEN,
github.token) does not start other workflows. For a pull request opened by
github-actions[bot] this looks like this:
pushworkflows (Test, Lint) are never created. Their required checks stay at "Expected — Waiting for status to be reported" and the pull request cannot be merged.pull_requestworkflows are created but end asaction_requireduntil someone approves them in the Actions tab.
Both happened to the weekly Patch vulnerabilities pull requests of
livingdocs-server (#10152–#10155).
Use a token the runner minted instead. It belongs to the li-action-runner
GitHub App, commits and tags show up as li-action-runner[bot], and pushes made
with it start workflows like any other push. A GitHub App takes no seat in the
organization.
permissions:
contents: read
jobs:
patch:
runs-on: self-hosted
steps:
# Without repositories, the token is for the job's own repository.
- id: token
uses: livingdocsIO/actions/token@<sha>
with: { permissions: "contents: write, pull-requests: write" }
- uses: livingdocsIO/actions/checkout@<sha>
with:
token: ${{ steps.token.outputs.token }}
persist-credentials: true
- run: |
git push origin "$BRANCH"
gh pr create --base main --head "$BRANCH" --title "…" --body "…"
env:
GH_TOKEN: ${{ steps.token.outputs.token }}The runner reads the job's steps in its "Set up runner" step, before the first
step runs, and mints one token per livingdocsIO/actions/token step and per
livingdocsIO/actions/checkout with permissions. Nothing can be requested later.
- Literal inputs.
repositoriesandpermissionsmust be plain text. An expression cannot be read before the job runs and is refused. - Branches. Only
push,workflow_dispatchandscheduleruns onmainorrelease-*get a token, and tags whose commit is on one of those branches. Pull requests, feature branches,pull_request_target,workflow_run,issue_comment,createandreleaseget none. A tag pushed right after its merge can be refused once, before the runner's mirror has the commit, and pass on a re-run. - CODEOWNERS.
.github/CODEOWNERSmust cover the workflow file. A push that adds a grant the previous commit did not have needs a merged pull request approved by one of those owners who isn't its author. - Actors. The actor and the triggering actor need
writeon every named repository. Bots (*[bot]) pass. - Permissions. Only what the App holds:
contents,issues,pull-requestsandactions,readorwrite. Anything else is refused. - Read once. Only the step that declared the token may read it, once. A second read fails the job. All tokens are revoked when the job ends, and the job log lists which step read which token.
- One workflow file. Token steps are refused when the job's steps come from more than one workflow file, i.e. in reusable workflows.
- Optional tokens. Set
required: falsewhere the same job also runs on pull requests, and guard the steps that need it withif: steps.token.outputs.granted == 'true'.
When a token is missing, the "Set up runner" log and the job summary have one line saying why and what to change.
contents: write in the job's permissions also gets the job a token of its
own, which semantic-release reads, so the tags it pushes start the tag
workflows.
Tokens need no id-token: write. That permission is for OIDC only: npm trusted
publishing and provenance, and Docker Hub logins with build's
dockerhub-oidc-id. Off main/release-* it fails the whole job in "Set up
runner", including if: always() steps, so leave it out of every other job.
checkout with repository: uses the runner's clone, prepared before the first
step. It needs a literal repository:, a push, workflow_dispatch or
same-repository pull_request run (not schedule), and an actor who can read
it. Add permissions: to get a token persisted in that clone so git push works.
Check other repositories out under runner.temp, not inside the workspace: a
clone nested in the workspace is picked up by tools of the outer repository, e.g.
the server's mocha read the framework's .mocharc.yml.
What a workflow author has to know. Operations are documented in github-actions-self-hosted.
- Labels.
self-hosted,linux,x64,docker. Every job gets a fresh container with docker-in-docker, 4 CPUs and 6 GB of memory. Nothing survives the job, so no cleanup steps are needed. - No
sudo. It is uninstalled. Preinstalled: docker with buildx and compose, git, gh, jq, zstd, rsync, openssh-client, unzip. - Git. The workspace is seeded from a mirror on the host, so the fetch only
transfers the difference and
fetch-depth: 0is cheap. - npm cache.
~/.npmis pre-populated for repositories whose workflows on the default branch containnpm cioractions/setup-node. Do not setcache: npmand do not movenpm_config_cache, andcontainer:jobs do not see the cache. - Node. The newest release of the current major and the two newest LTS majors are cached, as x64 and pointer-compression builds. Other versions are downloaded per job.
- Actions are read-only. An action must not write into
github.action_path. actions/cachegoes to a cache server next to the runners. When that fails it counts as a miss, not an error.- Images. Docker Hub and ghcr.io pulls go through mirrors.
docker buildruns on a shared BuildKit, or, on a pool set up for it, on the job's own Docker daemon. That one starts empty: only thebuildaction's registry cache carries layers from one job to the next, andRUN --mount=type=cachedirectories start empty. - Services.
services:andcontainer:work but get no docker socket and no host mounts, and start before the checkout. Use thecontaineraction for services that need files from the checkout. Its name on the network defaults to the image name. - Docker restrictions.
--privileged, capabilities and devices are blocked. Bind mounts only work from the workspace,~/.npmand the read-only caches.--network=hoststill works, but will be blocked. - Secrets. npm is not covered by the runner tokens:
NPM_TOKEN_READONLYandNPM_TOKEN_PUBLISHstay secrets. A secret in a job'senv:is visible to every step, so put it on the step that needs it. Withid-token: writeevery step can get a publish token, so runnpm ci --ignore-scriptsin those jobs.
- Branch pushes only. A plain
on: pushalso fires on the tags Release pushes. Usepush: { branches: ["**"] }for Test and Lint. - Test concurrency. Cancel superseded runs on feature branches only, so every
commit on
mainandrelease-*gets the Test run that Release waits for:concurrency: group: test-${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release-') }}
- Release. Wait for Test with
wait-for-workflow, and queue the release runs withqueue: max: GitHub otherwise keeps one pending run per concurrency group and cancels the others, so pushes go unreleased. See the release example.
The examples are shortened from the workflows of livingdocs-server (server),
livingdocs-editor (editor) and livingdocs-framework (framework).
Every job starts with it. It fetches all history and tags, which
semantic-release and semantic-release-check need.
The job's own repository is usually not fetched at all: the runner seeds the
workspace with a full clone that holds the job's commit, fetched by the host
when its mirror lacked it, and checkout checks that out locally as
actions/checkout would (the branch at the commit for a push, detached for a
tag, a pull request or a commit). Only with the defaults for ref,
fetch-depth, submodules, lfs and path; ref may also be the commit or
github.ref. Anything else, or a seed without the commit, runs
actions/checkout.
Other repositories of the organization are checked out from the runner's
clone, e.g. the server for the framework's downstream tests
(framework/.github/workflows/test.yml). ref-preference takes the first
branch that exists, one per line: the same branch, the release branch from
package.json, then main.
- name: Release branch
id: release
run: echo "branch=$(jq -r '.release.branches[0] | .name? // .' package.json)" >> "$GITHUB_OUTPUT"
- name: Checkout server
uses: livingdocsIO/actions/checkout@<sha>
with:
repository: livingdocsIO/livingdocs-server
path: ${{ runner.temp }}/server
ref-preference: |
${{ github.ref_name }}
${{ steps.release.outputs.branch }}
main- Credentials are not persisted unless
persist-credentials: true. A persisted header wins over every other credential in later git commands, including semantic-release's push. - Check other repositories out under
runner.temp. Nested in the workspace, the outer repository's tools find them, e.g. the server's mocha read the framework's.mocharc.yml. - The runner's clone needs a literal
repository:, apush,workflow_dispatchor same-repositorypull_requestrun, and an actor who can read it. Otherwise the "Set up runner" log says why it is missing.
- uses: livingdocsIO/actions/setup-node@<sha> # newest LTS
- uses: livingdocsIO/actions/setup-node@<sha>
with: { node-version: 26-pc } # pointer compressionThe framework runs its unit tests twice in one job: once on the default, then
again after a second setup-node with node-version: lts-1.
- Versions:
24,lts,lts-1,latest, and-pcfor pointer compression. Ranges like>=20are refused. - A
-pcline takes its newest pointer-compression build while a newer official release waits for one. After 14 days without one the step fails: unofficial-builds stopped building 22-pc at 22.1.0. - npm defaults go into the global npmrc, so a repository's
.npmrccan override them. - Do not add
cache: npm, the runner already has the npm cache. - npm refuses to run any script while
.npmrcnames an unset variable. Jobs that run npm on the runner setNPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}, and install withnpm ci --ignore-scripts.
Starts a service on the job network, removed in the post step. Use it instead
of services: when the service needs files from the checkout, e.g. the
decompounder dictionaries for Elasticsearch (server/.github/workflows/test.yml):
- name: Start Elasticsearch
uses: livingdocsIO/actions/container@<sha>
with:
image: elasticsearch:9.3.0
volumes: ./app/features/indexing/decompounder:/usr/share/elasticsearch/config/decompounder:ro
env: |
ES_JAVA_OPTS=-Xms256m -Xmx256m
discovery.type=single-node
xpack.security.enabled=falseWith detach: false it runs a one-off and waits for it, e.g. tests inside the
image build just loaded:
- name: Run tests
uses: livingdocsIO/actions/container@<sha>
with:
image: livingdocs/server:sha-${{ github.sha }}
detach: false
options: -w /app
env: |
db__host=postgres
redis__host=redis
search__elasticsearchClient__node=http://elasticsearch:9200
command: sh -c "wait-for-services && npm run test:ci"There are two ways to reach services, and a job uses one of them:
- Tests in a container reach services by name on the job network:
postgres,elasticsearch. Aservices:entry needsoptions: --network-alias <name>, acontainergets the image name, orname:. - Tests on the runner reach published ports on
127.0.0.1:ports: ["5432:5432"]onservices:,ports: 9200:9200oncontainer.
Notes:
name:sets the hostname. Two containers of the same image need different names, e.g.opensearch-newestandopensearch-oldest.- A one-off with
detach: falsekeeps no alias, so DNS does not answer with two containers. - A service that dies during the job shows up as DNS errors in the tests. The
post step warns with its exit code and whether it was killed for memory.
logs:sets how many log lines it prints.
Waits for the services: containers and for more endpoints before the tests
start. Probe Elasticsearch and OpenSearch on /_cluster/health, because they
open their port long before they answer queries.
- uses: livingdocsIO/actions/wait-for-datastores@<sha>
with:
services: ${{ toJSON(job.services) }}
endpoints: |
http://127.0.0.1:9200/_cluster/health
http://127.0.0.1:9201/_cluster/healthservices has to be passed in, because an action cannot read the job context.
Tests in the server image wait with its own wait-for-services instead.
A CA with server and client certificates for TLS tests, valid for 30 days. The
server tests Redis over TLS (server/.github/workflows/test.yml):
- uses: livingdocsIO/actions/mkcert@<sha>
with:
domain: redis
destination: ./redis-cert
# redis.ca.cert, redis.cert, redis.key, redis.client.cert, redis.client.keyThe editor serves its Playwright build over HTTPS with domain: editor, and
the tests trust it through NODE_EXTRA_CA_CERTS=/certs/editor.ca.cert.
Builds an image with the registry cache. Tests use load: true and run the
image with container:
- uses: livingdocsIO/actions/build@<sha>
with:
load: true
cache: read
target: development
tags: livingdocs/editor-test:${{ github.sha }}
secrets: NPM_TOKEN=${{ secrets.NPM_TOKEN_READONLY }}The editor's Playwright job builds three images this way: the editor, the
tests (context: ./playwright) and the server from its clone
(context: ${{ runner.temp }}/server).
cache: readuses the cache without writing to it. Use it for images that change with every commit.- Without a registry token from the runner, it builds without cache and warns. Old pins build without cache too.
- Pushes go through
cranefrom an OCI layout. A BuildKit push that mounts layers from another repository is refused by Docker Hub OIDC. pushandloadtogether are refused: push, then pull the pushed tag.- Provenance defaults to the value of
pushand is always off withload. org.opencontainers.image.versioncomes from the first tag, never frompackage.json. The created date is the commit time, so rebuilds are reproducible.
Runs the tests in an image (image) or on the runner (run), and uploads every
failed test as an artifact while the others still run (editor/.github/workflows/test.yml):
- uses: livingdocsIO/actions/playwright@<sha>
with:
name: playwright
image: livingdocs/editor-playwright:${{ github.sha }}
volumes: |
${{ runner.temp }}/editor-cert:/certs:ro
./playwright/test-results:/app/test-results
env: |
WORKERS=3
NODE_EXTRA_CA_CERTS=/certs/editor.ca.cert
command: sh -c "npm run test:ci -- --shard=${{ matrix.shard }}/3"playwright.confighas to addprocess.env.PLAYWRIGHT_STREAM_REPORTERas its first reporter when it is set.- Trace links open in playwright.livingdocs.io, because GitHub's artifact download needs a token.
- Set
prefixwhen several jobs run the same tests, e.g. one per node version. Shards run different tests and need none.
The "Lint / Commit Messages" check on pull requests. It shows the version the pull request would release in the check title.
on:
pull_request:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
checks: write
jobs:
commits:
name: Commit Messages
runs-on: self-hosted
steps:
- uses: livingdocsIO/actions/checkout@<sha>
- uses: livingdocsIO/actions/setup-node@<sha>
- uses: livingdocsIO/actions/semantic-release-check@<sha>
with:
check-run-id: ${{ job.check_run_id }}- Commit messages are checked for the pull request's commits only, merge commits are skipped.
- More than a patch release to a
release-*branch fails. - A pull request that
github-actions[bot]opened waits asaction_requireduntil someone approves the run.
The release workflow of the server and the editor:
on:
push:
branches: [main, "release-[0-9][0-9][0-9][0-9]-[0-9][0-9]"]
permissions:
actions: read # wait-for-workflow
contents: write # the runner's token for semantic-release, so its tag starts workflows
issues: write # release comments
pull-requests: write
id-token: write # npm trusted publishing
jobs:
publish:
runs-on: self-hosted
concurrency:
group: release
queue: max
cancel-in-progress: false
steps:
- uses: livingdocsIO/actions/wait-for-workflow@<sha>
timeout-minutes: 25
with:
workflow: test.yml
job: Node 26
- uses: livingdocsIO/actions/checkout@<sha>
- uses: livingdocsIO/actions/setup-node@<sha>
with: { node-version: 26-pc }
- uses: livingdocsIO/actions/semantic-release@<sha>
- uses: livingdocsIO/actions/npm-tag-latest@<sha>
if: startsWith(github.ref, 'refs/heads/release-')
with:
token: ${{ secrets.NPM_TOKEN_PUBLISH }}The framework sets these permissions on the job instead of the workflow, and
builds before it releases. Every step of a job with id-token: write can get an
npm publish token, so install with npm ci --ignore-scripts there.
wait-for-workflow waits for Test on the same commit instead of needs:
across workflow files. Name the job to wait for one job, not the whole run.
- It needs
actions: read, andcontents: readto notice that the branch has moved past the commit. It then succeeds withsuperseded: trueand the newer push releases. - A run that was superseded in its concurrency group never creates jobs and counts as cancelled.
semantic-release releases with the preset from package.json
(release.extends) or the preset input.
- Only our presets: no custom plugins, no
.releaserc, and only theprepacklifecycle script runs. release-*branches only get patch releases, dry runs included.- It releases with the job's node when semantic-release supports it and npm is at least 11.5.1, otherwise it installs its own node (node 22 ships npm 10).
- It warns when the runner minted no token. A tag pushed with the job token starts no tag workflow, e.g. no release notes.
npm-tag-latest moves latest to the current Livingdocs release, and does
nothing on other branches. It needs NPM_TOKEN_PUBLISH: a trusted-publishing
token can publish, but not change dist-tags.
relcut releases from conventional
commits: version, tag, npm and the GitHub release, one static binary without
plugins. This copy installs the newest relcut 1.x release, checked against the
release's SHA256SUMS, and keeps what the semantic-release action did for our
repositories, so it can take that step's place:
- uses: livingdocsIO/actions/relcut@<sha>package.jsonreleasesets the defaults: annpm-*preset publishes to npm unlessnpmPublishis false,branchesare the branches that release, a branch'schannelis its dist-tag, andtagFormatthe tag prefix. Plugins, prereleases and other keys are refused. Inputs win overpackage.json.- A
-verifypreset allows only patches onrelease-*branches: relcut'sconstraintis the newest tag's major and minor, e.g.312.0. - The tag is pushed with the runner's token for the repository, so it starts the tag workflows. Without one it falls back to the job token, with a warning.
- npm trusted publishing needs npm 11.5.1. With an older npm in the job, the action installs a node for the release.
- Its
preparerunsnpm ci --ignore-scriptsandnpm packitself. Passnpm-install-tokenwhen the dependencies need one. - Every run takes the newest 1.x release, so a relcut fix reaches every
repository without a pin bump here and in its workflows. The releases are
immutable: a version that is out cannot change.
relcut-version: 1.0.1holds a repository on one version.
command: check replaces semantic-release-check on pull requests. It needs
no node, so the job skips setup-node:
on:
pull_request:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
checks: write
jobs:
commits:
name: Commit Messages
runs-on: self-hosted
steps:
- uses: livingdocsIO/actions/checkout@<sha>
- uses: livingdocsIO/actions/relcut@<sha>
with:
command: check
check-run-id: ${{ job.check_run_id }}It checks the pull request's own commits against the base branch, and the
-verify rule against the base branch too: a feat: into release-* fails.
check and prepare use github-token or the job token, never the runner's,
which a job can read only once.
All other inputs are relcut's own, see its README.
The editor's release notes write to livingdocsIO/documentation, which the job's
token cannot reach (editor/.github/workflows/release-notes.yml):
on:
push:
tags: ["**"]
steps:
- id: token
uses: livingdocsIO/actions/token@<sha>
with:
repositories: |
livingdocsIO/documentation
livingdocsIO/livingdocs-editor
permissions: |
contents: write
pull-requests: read
- run: npx github:livingdocsIO/release-notes-patch --token="$GH_TOKEN" …
env:
GH_TOKEN: ${{ steps.token.outputs.token }}The rules are in Tokens.
The weekly Patch vulnerabilities job of the server, the editor and the
framework, and this repository's own (.github/workflows/patch-vulnerabilities.yml).
It runs npm audit fix in every directory with a tracked package-lock.json,
commits the changed manifests with GraphQL's createCommitOnBranch, so the
commit is signed and shows as li-action-runner[bot], and keeps one pull
request per base branch on security/<base>, updated in place every week.
The pull request and the job summary say per lockfile how many
vulnerabilities were fixed and how many are left, by severity:
### ./container/package-lock.json
fixed 4 vulnerabilities (1 moderate, 3 high)
12 vulnerabilities remain (2 moderate, 10 high)
### ./server/package-lock.json
fixed 2 vulnerabilities (1 moderate, 1 high)
no known vulnerabilities
### ./playwright/package-lock.json
no known vulnerabilitiesThe pull request leaves out the no known vulnerabilities line under a fix.
- id: token
uses: livingdocsIO/actions/token@<sha>
with: { repositories: livingdocsIO/livingdocs-editor, permissions: "contents: write, pull-requests: write" }
- uses: livingdocsIO/actions/checkout@<sha>
with: { ref: "${{ matrix.branch }}" }
- uses: livingdocsIO/actions/setup-node@<sha>
- uses: livingdocsIO/actions/patch-vulnerabilities@<sha>
with:
token: ${{ steps.token.outputs.token }}
npm-token: ${{ secrets.NPM_TOKEN_READONLY }}
base: ${{ matrix.branch }}- The checkout has to be on
base: the commit's parent is the checked-out commit, so the audit and the lockfile belong to the same tree. Nopersist-credentials, nothing is pushed with git. directoriesoverrides the discovery, one per line.- "Nothing to fix automatically" next to a package whose fix is
npm audit fixis npm's own contradiction: the package is bundled inside another one, e.g. undernode_modules/npm/node_modules, and only a newer parent removes it. - A workflow with a
tokenstep needs.github/CODEOWNERScovering it, see Tokens.
Checks the dependencies against .github/dependency-policy.json, config
points to another file. check lists the checks to run, engine,license by
default. The action clones and installs nothing of the repository: check out,
set up node and run npm ci before it.
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
dependencies:
name: Dependency policy
runs-on: self-hosted
steps:
- uses: livingdocsIO/actions/checkout@<sha>
- uses: livingdocsIO/actions/setup-node@<sha>
- run: npm ci --no-audit --no-fund
env: { NPM_TOKEN: "${{ secrets.NPM_TOKEN_READONLY }}" }
- uses: livingdocsIO/actions/dependency-policy@<sha>The server runs them as two jobs, Engines and Licenses, so each is its own
required check, and Engines reports within seconds since check: engine
needs no npm ci:
engines:
name: Engines
runs-on: self-hosted
steps:
- uses: livingdocsIO/actions/checkout@<sha>
- uses: livingdocsIO/actions/setup-node@<sha>
- uses: livingdocsIO/actions/dependency-policy@<sha>
with: { check: engine }{
"engines": {
"platforms": [{"os": "linux", "cpu": "x64"}, {"os": "linux", "cpu": "arm64"}],
"exceptions": {
"posthog-node": {"node": "^20.20.0 || >=22.22.0", "reason": "Why it is fine"}
}
},
"licenses": {
"allow": ["Apache-2.0", "BSD-3-Clause", "ISC", "MIT"],
"exceptions": {
"@img/sharp-libvips-*": {"license": "LGPL-3.0-or-later", "reason": "Why it is fine"}
}
}
}enginereadspackage-lock.jsononly and compares each range with the rootengines.nodeas a subset, clause by clause. A package npm would not install on any ofengines.platformsis skipped. devDependencies are reported but never fail the check, consumers do not install them.licensereads the installed tree withnpm query, since the lockfile has no license data, and fails when nothing is installed.ORpasses when one operand is allowed,ANDwhen all are.@livingdocs/*packages are skipped.- An exception is pinned to the range or license that was reviewed, and a
trailing
*covers a family of packages. When the package changes it, the exception is reported again. A blocking engine finding prints an exception ready to paste. strict: falseturns the findings into warnings. A crash fails the step either way, so a broken check never reads as a passing one.- No
paths:filter on the workflow when the checks are required: a required check whose workflow never starts is never reported, and the pull request waits on it.
- Each action lives in its own directory. JavaScript actions run on
node24; the runner refusesnode26. - Tests run with
node --testin the action's directory. CI runs them for every action with tests, see .github/workflows/test.yml. - The runner evaluates
${{ }}everywhere inaction.yml, descriptions included. Example expressions in descriptions break the action. Quote descriptions that contain:, otherwise YAML reads them as a mapping. - Input defaults cannot use the
jobcontext. $GITHUB_OUTPUTdoes not decode%0A. Write multi-line outputs with a heredoc delimiter.- Commits follow conventional commits. Every push to
mainis released by semantic-release; consumers then bump their pins.