From 6ba004808ef47c8856c1a7906faaf7ee807d15a6 Mon Sep 17 00:00:00 2001 From: Md Nurnobi Date: Mon, 23 Nov 2026 17:38:06 +0000 Subject: [PATCH] ci(provenance): manual-only pinned Node disposable image provenance workflow --- .gitea/workflows/p05-login-provenance.yml | 49 +++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .gitea/workflows/p05-login-provenance.yml diff --git a/.gitea/workflows/p05-login-provenance.yml b/.gitea/workflows/p05-login-provenance.yml new file mode 100644 index 0000000..6e06c24 --- /dev/null +++ b/.gitea/workflows/p05-login-provenance.yml @@ -0,0 +1,49 @@ +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"