ci(mod_whp_symlink): harden PR job on shared runners; publish builds never reuse cache
shared-httpd mod_whp_symlink PR check / Symlink-Module-Probe (pull_request) Successful in 2m25s
shared-httpd mod_whp_symlink PR check / Symlink-Module-Probe (pull_request) Successful in 2m25s
- PR workflow: no secrets/registry login, checkout without persisted credentials, docker build --pull --no-cache, per-run tag shared-httpd:pr-probe-<run_id>, always() cleanup of the image and containers. - build-push.yaml: every docker/build-push-action step gets pull: true and no-cache: true (base is already digest-pinned by the resolve step). - Wiring tests for both; docs: CI trust model. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
0d9e57e012
commit
cc68d30d57
4 files changed
+106
-2
No files matched your search
@@ -44,3 +44,17 @@ FAIL. Any failed assertion exits 1.
|
||||
- Publish: `Build-Shared-httpd` in `build-push.yaml` runs the same test against the amd64 image
|
||||
it just pushed by digest, before the arm64 build and the tag-assembly step. A failure
|
||||
publishes no tag. (amd64 only; the arm64 image is not probed.)
|
||||
|
||||
## CI trust model
|
||||
|
||||
Gitea has only shared `ubuntu-latest` runners (two), used by the publish jobs and by PR jobs
|
||||
alike; there is no separate label for untrusted code. So:
|
||||
|
||||
- The PR workflow runs PR-supplied Dockerfile and C source with no secrets and no registry
|
||||
login, builds with `--pull --no-cache` under a per-run tag
|
||||
(`shared-httpd:pr-probe-<run_id>`), and removes its image and containers in an
|
||||
`if: always()` step.
|
||||
- Every `docker/build-push-action` step in `build-push.yaml` sets `pull: true` and
|
||||
`no-cache: true`, on a fresh buildx builder per job and a digest-pinned base image, so no
|
||||
cache or local image from an earlier job on the runner is reused by a publish build.
|
||||
- Repo setting (maintainer's call): require approval for PR workflows from forks.
|
||||
Reference in new issue
Block a user