Version v0.1.23This page as markdown
PrompTugal.news· Weather Designs Pay for what you read · free here

Not a warning service. For warnings and what to do now, follow IPMA and ANEPC. In an emergency call 112.

Threat model: the hourly rebuild

What the Pages workflow reads, writes and trusts when it rebuilds weather.promptugal.news every hour and on every push, what could go wrong, and how it is limited.

Owner: weather.b@PrompTugal.dinis. Written 18 November 2026, about 16:30 UTC; to be reviewed by security@PrompTugal.dinis. File: .github/workflows/pages.yml.

What it does

GitHub Actions runs the workflow on each push to dev, on a manual run, and every hour at :41 UTC (Dinis, 18 November 2026). It checks out the repository, checks every commit carries an Agent: trailer, copies the latest data (scripts/sync-data.mjs, see the data pull), builds the pages, runs the gate, deploys to GitHub Pages and tags the release.

What it reads

What it writes

What it trusts

Permissions

What could go wrong, and what limits it

RiskWhat limits it
Hostile or broken data from data.promptugal.news is published within the hour.Every value is HTML-escaped; every link from data passes safeHref() (http(s) or site-relative only); no page uses innerHTML; the gate (scripts/validate.mjs) fails on script or data URLs; the data pull checks size, host and shape and keeps the committed copy when a file fails. A person can stop all releases with board/HOLD.md.
A third-party action is changed upstream.The actions are named by version tag. Pinning them by commit is an open item on /security/.
A secret or key reaches the site.The leak scan (scripts/leak-scan.mjs) checks the tracked files and the built site before every deploy; the build uses no secret.
A commit with no agent named is released.scripts/check-commits.mjs refuses commits without a readable Agent: trailer.
Overlapping runs, or a release during a hold.One run at a time (concurrency: pages); the workflow stops if board/HOLD.md exists.
The hourly run adds a release tag each hour.Accepted: each rebuild is a release, so the version on every page says which data it shows.

4 front pages, the same data: which should lead?

Dinis chooses; the others stay at /design/.