50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
name: ZitPlane P05-OIDC-10 Disposable Imported Login OCI Provenance
|
|
|
|
# Manual-only. No registry login/push, production secrets, release, DNS or deployment.
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
login_provenance:
|
|
name: Verify pinned imported Login image and owned cleanup
|
|
runs-on: ubuntu-latest
|
|
container: node:24-alpine@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5
|
|
timeout-minutes: 70
|
|
steps:
|
|
- name: Install minimal CI tooling before checkout
|
|
run: apk add --no-cache git python3 docker-cli
|
|
- name: Checkout immutable run source
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
github-server-url: https://dev.ivib.cc
|
|
persist-credentials: false
|
|
- name: Verify source pins and reject 12 malformed provenance contracts
|
|
run: |
|
|
set -eu
|
|
python3 tests/ci/login_image/provenance.py --preflight
|
|
python3 tests/ci/login_image/provenance.py --negative
|
|
- name: Frozen source build and local pinned OCI image attestation only
|
|
run: |
|
|
set -eu
|
|
export ZITPLANE_PROVENANCE_CI=1
|
|
sh tests/ci/login_image/build.sh
|
|
test -s "/tmp/zitplane-login-build-$GITHUB_RUN_ID/materials.spdx.json"
|
|
test -s "/tmp/zitplane-login-build-$GITHUB_RUN_ID/provenance.json"
|
|
echo ZITPLANE_P10_SPDX_LITE_AND_UNSIGNED_ATTESTATION_FILES_PASS
|
|
echo ZITPLANE_P10_NO_REGISTRY_PUBLISH_OR_APPLICATION_SERVICE_CONFIGURED_PASS
|
|
- name: Always cleanup exact run-owned builder image and build context
|
|
if: always()
|
|
run: |
|
|
set +e
|
|
rc=0
|
|
if [ -f tests/ci/login_image/cleanup.sh ]; then
|
|
sh tests/ci/login_image/cleanup.sh || rc=1
|
|
else
|
|
echo ZITPLANE_P10_CLEANUP_SCRIPT_MISSING >&2
|
|
rc=1
|
|
fi
|
|
exit "$rc"
|