diff --git a/.gitea/scripts/install-trivy.sh b/.gitea/scripts/install-trivy.sh deleted file mode 100755 index 4823ab1..0000000 --- a/.gitea/scripts/install-trivy.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# Installs Trivy at a fixed version, checked against a fixed checksum, so a changed download fails the -# job instead of running. To update: take the version and the checksum of the Linux-64bit tarball from -# https://github.com/aquasecurity/trivy/releases (the checksums file of that release). -set -eu - -VERSION=0.77.0 -SHA256=c9504e6ff8184b91e8e7266c84ad8538f76347f1e5488e07cb083855883cd9a6 - -curl -fsSL -o /tmp/trivy.tar.gz "https://github.com/aquasecurity/trivy/releases/download/v${VERSION}/trivy_${VERSION}_Linux-64bit.tar.gz" -echo "${SHA256} /tmp/trivy.tar.gz" | sha256sum -c - -tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy -trivy --version diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml index b8d77c8..ead6043 100644 --- a/.gitea/workflows/pr-ci.yml +++ b/.gitea/workflows/pr-ci.yml @@ -151,15 +151,6 @@ jobs: - name: composer audit run: composer audit - - name: install trivy - run: .gitea/scripts/install-trivy.sh - - # Fails on HIGH and CRITICAL. vendor/ is left out of the secret and settings scan (it is other - # people's code); the lock file made above is what the vulnerability scan reads. - - name: trivy - run: | - trivy fs --no-progress --scanners vuln,secret,misconfig --severity HIGH,CRITICAL --exit-code 1 --skip-dirs vendor . - # Pull requests to a release branch merge by themselves when the check below is green. # Every job that checks out runs in an image with git: without git the checkout is the archive of the # repository, which leaves out what .gitattributes export-ignores (.gitea/ with these scripts). diff --git a/.gitea/workflows/scheduled.yml b/.gitea/workflows/scheduled.yml index 038cc7d..dce1c10 100644 --- a/.gitea/workflows/scheduled.yml +++ b/.gitea/workflows/scheduled.yml @@ -40,9 +40,3 @@ jobs: - name: composer audit run: composer audit - - name: install trivy - run: .gitea/scripts/install-trivy.sh - - - name: trivy - run: | - trivy fs --no-progress --scanners vuln,secret,misconfig --severity HIGH,CRITICAL --exit-code 1 --skip-dirs vendor . diff --git a/CHANGELOG.md b/CHANGELOG.md index 534daaa..09d0457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ the section is the text of the release in Gitea. Cloudflare Turnstile is built in (two env keys). No two-factor login in the package itself. - Roles of the host: `manager.permissions` (`mode` groups/host/merge, `roles` map or a `resolver` implementing `PermissionResolver`) lets a site with its own roles say what an account may do; groups stay the default. +- CI: Trivy no longer runs in the jobs (the runner disk filled up with its database). `composer audit` stays in every pull request; Trivy scans production from the homelab (nightly, and after a deploy). - `manager:doctor` has a `names` check: it warns when the site uses a route name or an address of the manager and says to set `route_name` or `path`. ## v0.4.0 - 2026-12-04 diff --git a/README.md b/README.md index ba042d5..c32929d 100644 --- a/README.md +++ b/README.md @@ -260,9 +260,9 @@ Nobody opens a pull request to `develop`, and `production` and the release branc | When | What runs | |---|---| -| Pull request to a release branch or to production | *flow* (right branches, version above the latest tag, changelog section, tests of these scripts), *ledger* (`TOKENS.md`), *test* (Pint, Pest with the newest and the oldest dependencies, `composer validate`), *security* (`composer audit`, Trivy on the dependencies, secrets and settings). The check `PR CI / pr-ci` is green when all are. | +| Pull request to a release branch or to production | *flow* (right branches, version above the latest tag, changelog section, tests of these scripts), *ledger* (`TOKENS.md`), *test* (Pint, Pest with the newest and the oldest dependencies, `composer validate`), *security* (`composer audit`: the job fails on any advisory). The check `PR CI / pr-ci` is green when all are. | | Push to production | verify (Pest, audit), tag and release, Packagist, sync develop | -| Every Monday | `composer audit` and Trivy on production | +| Every Monday | `composer audit` on production | | Every Monday | *Dependency updates*: a direct dependency with a release outside its constraint (a new major) gets its constraint widened in a pull request `renovate/deps-DATE` to the open release branch; the npm packages of the screens (`ui/`) move to their newest release that has been public for 48 hours, with a rebuilt `resources/dist`, in `renovate/ui-deps-DATE`. PR CI tests them and they merge when green. Nothing happens while no release is open. The central Trivy (every night 03:00 UTC) and Renovate (04:00 UTC) of the homelab also pass over this repo, but read a `composer.lock` and a package has none, so they find little here. | | Every night | *Prune branches*: removes `feature/*` and `fix/*` branches whose last commit is over 30 days old and that have no open pull request (a branch of a pull request can be restored from it in Gitea) | diff --git a/TOKENS.md b/TOKENS.md index 9282b13..87a5fa5 100644 --- a/TOKENS.md +++ b/TOKENS.md @@ -44,3 +44,4 @@ Per stuk werk een rij; zie `dev/token-usage.py`. | 2026-12-04 | Loginhaken: eigen velden en controles, en Turnstile | - | claude-sonnet-5-5 | 4 | 9.009 | 8 | 9.515 | 1.178.544 | 0,02 | | 2026-12-04 | Rollen van de site naast de groepen van het pakket | - | claude-sonnet-5-5 | 3 | 5.308 | 6 | 8.235 | 921.246 | 0,01 | | 2026-12-04 | Controle op namen die de site al gebruikt, en de documenten van 0.5.0 rechtgezet | - | claude-sonnet-5-5 | 9 | 7.281 | 18 | 12.115 | 2.881.457 | 0,03 | +| 2026-12-04 | Trivy uit de PR-jobs (schijf van de runners vol), opruimen en wekelijkse prune | - | claude-sonnet-5-5 | 20 | 9.723 | 44 | 94.863 | 1.460.150 | 0,15 |