mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Hardened CI, Split the image push, Kept latest for releases only
The workflow's token is read-only but in the Docker jobs, where it's only given to docker login after the image is built and checked; it goes through env, never into a script. Checkouts don't keep it on disk (a crate's build script can't read it), the actions are pinned to their commits (checkout, setup-python and upload-artifact v7, on Node 24), cargo builds with --locked (test.ps1 too), every job has a time limit, and the image tag is checked before use. latest only moves for versions without a "-". The login and the push are separate steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -271,7 +271,11 @@ Also decided (2026-11-13):
|
||||
`docker/test.sh`, and on a tag pushes them to
|
||||
`ghcr.io/aziascreations/bakashrot-server` with the workflow's token,
|
||||
then an index of both as `<version>` and `latest` (once the releases
|
||||
passed). The Gitea registry stays a push by hand.
|
||||
passed; `latest` only for versions without a `-`). The Gitea registry
|
||||
stays a push by hand. The workflow's safety is in its header: tags and
|
||||
manual runs only, a read-only token but where images are pushed (after
|
||||
they're built and checked), no token left on disk by checkout, actions
|
||||
pinned to commits, `--locked` builds.
|
||||
|
||||
## Proposed, to confirm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user