Verify the human container path while respecting AGit secret restrictions
All checks were successful
C3 PR policy verification / trusted-release-gate (pull_request) Has been skipped
C3 PR policy verification / route (pull_request) Successful in 13s
C3 PR policy verification / full-environment (pull_request) Successful in 2s

This commit is contained in:
Andras Schmelczer 2026-11-07 13:11:57 +00:00
commit 266ea76778

View file

@ -23,7 +23,7 @@ jobs:
run: "set -eu\ntest ! -S /var/run/docker.sock\ntest ! -e /pages\nawk '$1 ==\ run: "set -eu\ntest ! -S /var/run/docker.sock\ntest ! -e /pages\nawk '$1 ==\
\ 0 { if ($2 == 0) exit 1; found=1 } END { if (!found) exit 1 }' /proc/self/uid_map\n\ \ 0 { if ($2 == 0) exit 1; found=1 } END { if (!found) exit 1 }' /proc/self/uid_map\n\
if [ \"$CI_UNTRUSTED\" = true ]; then\n test -z \"$REGISTRY_TOKEN\"\n echo\ if [ \"$CI_UNTRUSTED\" = true ]; then\n test -z \"$REGISTRY_TOKEN\"\n echo\
\ BOT_SECRET_FREE_ROOTLESS_OK\nelse\n test -n \"$REGISTRY_TOKEN\"\n echo\ \ BOT_SECRET_FREE_ROOTLESS_OK\nelse\n test \"$CI_UNTRUSTED\" = false\n echo\
\ HUMAN_FULL_CONTAINER_OK\nfi\nmkdir context\nprintf 'FROM docker.io/library/alpine:3.22\\\ \ HUMAN_FULL_CONTAINER_OK\nfi\nmkdir context\nprintf 'FROM docker.io/library/alpine:3.22\\\
nRUN echo verified >/proof\\n' >context/Dockerfile\n" nRUN echo verified >/proof\\n' >context/Dockerfile\n"
- name: Build without publishing or registry credentials - name: Build without publishing or registry credentials