Nothing runs weekly: nightly scan and updates from the homelab, Trivy after a release
This commit is contained in:
1 parent
3e8a73d3da
commit
a5e640b31b
9 files changed
+26
-466
No files matched your search
@@ -261,11 +261,21 @@ 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`: 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` 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. |
|
||||
| Push to production | verify (Pest, `composer audit`), tag and release, Packagist, sync develop; then the homelab scans production with Trivy |
|
||||
| Every night | the homelab scans every repository with Trivy (03:00) and updates its dependencies (04:00): nothing runs weekly in this repository |
|
||||
| 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) |
|
||||
|
||||
### Security and updates
|
||||
|
||||
Nothing here runs on a weekly schedule; the checks hang on the moments that matter, and the homelab does the rest every night.
|
||||
|
||||
- **Every pull request:** `composer audit` (it fails on any advisory).
|
||||
- **Every release:** `composer audit` again on the merge to `production`.
|
||||
- **After every release to production:** Trivy scans `production` from the homelab (LXC 120, no database to download in a job).
|
||||
- **Every night:** Trivy scans every repository of the organisation (03:00), and the dependency round (04:00) opens a pull request
|
||||
`renovate/deps-DATE` straight to `production` for updates that have been public for 48 hours. PR CI tests it; it makes no release
|
||||
and reaches `develop` with the next sync. A critical advisory on the installed version skips the 48 hours.
|
||||
|
||||
Secrets of the repository for this: `DEPLOY_TOKEN` (the organisation has it), and `PACKAGIST_USERNAME` and
|
||||
`PACKAGIST_TOKEN` (until they are set that step only says so). When Packagist does not know the package yet, that step
|
||||
submits it through the create-package API; after that it only tells Packagist about each new tag.
|
||||
|
||||
Reference in new issue
Block a user