Astro 7.4.12 requires Node >=22.23.4; the Gitea runner's tool cache had 22.23.1, so astro build refused to start.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Same gate as release.yml. audit.yml still files an issue for moderate and up, and the full audit report prints in CI.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
actions/checkout and actions/setup-node v4 -> v5, softprops/action-gh-release
v2 -> v3; all three run on Node 24. setup-deno@v2, setup-bun@v2 and
crates-io-auth-action@v1 already resolve to Node 24 releases. Jobs keep
node-version 22.
Refs Green-Tea/core#103
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The previous commit dropped the tag trigger along with the failing
git push --tags. That also cut the only way a v* tag reached GitHub,
where release.yml builds the dist.tar.gz the cPanel deploy uses. The
per-tag push, which pushes only the new tag by name, is back. The
blanket --tags on the branch push stays gone.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The site deploys by hand, so a tag on GitHub triggers nothing. Pushing
them also failed every promotion: git push --tags is refused when a tag
points at different objects on the two forges, which v26.8.1-beta.0 and
v26.8.2-beta.0 do, and the job went red even though main had arrived.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Two advisories landed in this tree in a single day — js-yaml in the morning,
nanoid a couple of hours later. Neither had anything to do with a code change.
A release gated on `npm audit` fails by calendar date, and it fails at the
exact moment there is least time to judge whether a fix is safe.
What ships from here is built HTML, CSS and JS. Astro, js-yaml and nanoid are
build-time tools that never reach a visitor; the advisories in question need
control over build inputs to matter, and an attacker with that has already won.
So the release gate drops to `critical` — a tripwire for the catastrophic case,
not a trigger for routine noise. Nothing is lowered anywhere else: ci.yml still
blocks every PR at moderate, which is where there is time and context to fix.
The new scheduled audit is what makes that safe rather than negligent. Monday
mornings on Gitea, filing an internal issue when something turns up, with a
dedup check so a weekly cron cannot open 52 copies. Learning about a
vulnerability and being unable to publish stop being the same event.
`workflow_dispatch` is included so it can be run and verified on demand.
ci.yml: astro build on PR/push to main. promote.yml (Gitea-only): mirror main + tags to Expressive-Tea/green-tea-site. release.yml (GitHub-only): on a v* tag, build and attach dist as a .tar.gz to the GitHub release for the cPanel deploy.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>