Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions qualification/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions qualification/protected-policy-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
123 changes: 123 additions & 0 deletions tests/fixtures/ci-php-archive-mirror-20261119-source.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/test_protected_policy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}

Expand Down
Loading