From 14a7fff0925272e23d3c2a2207e0fd3be7753e70 Mon Sep 17 00:00:00 2001 From: Richard McDaniel <1130888+rmcdaniel@users.noreply.github.com> Date: Thu, 19 Nov 2026 18:30:49 +0000 Subject: [PATCH] Approve 636d0cda as the mirrored bound-linux-php setup pin Data PR 2 of qualification/PHP-ARCHIVE-UPDATES.md. 636d0cda is the main commit from #421, whose catalog binds both setup rows to their immutable durable-workflow/php-archives mirror assets. - policy.json: add 636d0cda as bound-linux-php (cba1285d stays approved; consumers still pin it). - protected-policy-data.json: one reviewed ci.yml identity whose fixture is the 20261119 fixture with only the setup-php-linux pin replaced, derived_from 49f079af. - The registry snapshot test counts the added identity. Co-Authored-By: Claude Opus 5.5 --- qualification/policy.json | 1 + qualification/protected-policy-data.json | 7 + .../ci-php-archive-mirror-20261119-source.yml | 123 ++++++++++++++++++ tests/test_protected_policy_data.py | 2 +- 4 files changed, 132 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/ci-php-archive-mirror-20261119-source.yml diff --git a/qualification/policy.json b/qualification/policy.json index 5255391..ba0d252 100644 --- a/qualification/policy.json +++ b/qualification/policy.json @@ -89,6 +89,7 @@ "52283e2e8ea9a2cf7e3865ee30f2a72a38b098a2": "clean-trust", "54cce4c6a814c8137dafbee594a1e0bdcf0ba60c": "clean-trust", "5c1ddbff59bcfad8a686a72a9b09804b359c382a": "bound-linux-php", + "636d0cda4ce1e9c94ac6bf649154ff57957558be": "bound-linux-php", "699d09d602fc0353160bdecaa2b23f07ef4c7c21": "clean-trust", "75587fc33ff40c34f32ef777293dad56bb6f48c7": "clean-trust", "76f333804e68725059039fd54df241d40d855cd3": "clean-trust", diff --git a/qualification/protected-policy-data.json b/qualification/protected-policy-data.json index 940c454..8523868 100644 --- a/qualification/protected-policy-data.json +++ b/qualification/protected-policy-data.json @@ -104,6 +104,13 @@ "sha256": "49f079af77a19ffee50e36d8c276309eced2f2e660550a06e6b5619ea630bd7e", "fixture": "tests/fixtures/ci-php-archive-repair-20261119-source.yml" }, + { + "registry": "php_archive_mirror_20261119_source_ci_successors", + "path": ".github/workflows/ci.yml", + "sha256": "b38688348993bd18fd74895a8652a0b0c3a4b32ee2a6a7c2f4fc50d49d7d8d94", + "fixture": "tests/fixtures/ci-php-archive-mirror-20261119-source.yml", + "derived_from": "49f079af77a19ffee50e36d8c276309eced2f2e660550a06e6b5619ea630bd7e" + }, { "registry": "initial_profile_successors", "path": ".github/workflows/qualify-linux-php-initial.yml", diff --git a/tests/fixtures/ci-php-archive-mirror-20261119-source.yml b/tests/fixtures/ci-php-archive-mirror-20261119-source.yml new file mode 100644 index 0000000..a010e51 --- /dev/null +++ b/tests/fixtures/ci-php-archive-mirror-20261119-source.yml @@ -0,0 +1,123 @@ +name: Repository checks + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: repository-checks-${{ github.ref }} + cancel-in-progress: true + +jobs: + contracts: + name: Shared contract tests + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 + with: + python-version: "3.13" + + - uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust + with: + clients: pip,python,composer,curl,git,npm,cargo + + - name: Disable APT download retries (CVE-2026-109518) + run: echo 'Acquire::Retries "0";' | sudo tee /etc/apt/apt.conf.d/99-no-retries >/dev/null + + - uses: durable-workflow/.github/.github/actions/setup-php-linux@636d0cda4ce1e9c94ac6bf649154ff57957558be # bound-linux-php + with: + php-version: '8.3' + ini-file: production + tools: composer:2.10.3,phpunit:11.5.57 + coverage: none + + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 + with: + node-version: 24.22.1 + cache: npm + + - uses: dtolnay/rust-toolchain@4d407b29186a635f0cc27475ef0bc0ae605a8866 # 1.86.0 + with: + toolchain: 1.86.0 + + - uses: ./.github/actions/verify-composer-trust # local + + - name: Install Python test dependencies + run: >- + python -m pip install --only-binary :all: jsonschema==4.23.0 PyYAML==6.0.2 + + - name: Test retained shared contracts + run: >- + python -m unittest + tests.test_qualification_policy + tests.test_protected_policy_context + tests.test_protected_policy_check + tests.test_protected_policy_inputs + tests.test_protected_policy_issue + tests.test_native_policy_check + tests.test_native_policy_workflow + tests.test_regression_corpus + tests.test_regression_evidence_schema + tests.test_server_codec_counterfactual_schema + tests.test_visual_evidence + tests.test_temporal_runtime + tests.test_cancellation_workflow_policy + tests.test_sdk_metrics_contract + tests.test_command_response_loss + tests.test_ci_trust + tests.test_pip_effective_trust + tests.test_cli_effective_trust + tests.test_composer_trust_contract + tests.test_composer_container_trust + tests.test_composer_container_effective_trust + tests.test_php_linux_bootstrap + tests.test_php_linux_archive + tests.test_php_linux_normalize + tests.test_php_linux_recipe + tests.test_php_linux_tools + tests.test_php_linux_alternatives + tests.test_setup_php_linux + tests.test_php_linux_qualification + tests.test_php_linux_qualification_workflow + tests.test_php_linux_configuration + + - name: Test actual Composer trust selection + run: COMPOSER_BINARY="$(command -v composer)" phpunit --configuration phpunit-composer-trust.xml --do-not-cache-result + + - name: Install Node dependencies + run: npm ci --ignore-scripts + + - name: Test browser evidence boundary + run: npm run test:visual-capture + + protected-parser-install: + name: Protected parser installer controls + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 + with: + python-version: '3.13' + - name: Create a disposable installer runtime + run: | + python -I -m venv "$RUNNER_TEMP/protected-parser-install" + printf '%s\n' "$RUNNER_TEMP/protected-parser-install/bin" >> "$GITHUB_PATH" + - uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust + with: + clients: pip,python + - name: Exercise the actual isolated hash-locked installer + run: python -I tests/test_policy_dependency_install.py diff --git a/tests/test_protected_policy_data.py b/tests/test_protected_policy_data.py index ab7f7d6..0c56496 100644 --- a/tests/test_protected_policy_data.py +++ b/tests/test_protected_policy_data.py @@ -36,7 +36,7 @@ # The registries hard-coded in runtime 90313f07 (the #411 head), as sorted # "path sha256" lines. Moving them to data must not add or drop an identity. PREVIOUS_REGISTRIES = { - "github-control-plane": (28, "1eb54bbfb1bbdd41df4607be3c6af56bfd14d8dbcbc347e1551db236768c2fcd"), + "github-control-plane": (29, "ad2027febf07a3250ec1a8a254a4187d489beb2d2e3ba3e6d9fc678420e4c41b"), "ai": (2, "4ac997256eef428482ccbc0274df755f8cf5687e6e7a04039ac51ea741b29cbd"), }