Skip to content

ci: pin integration tests to Cacti 1.2.31 - #225

Draft
somethingwithproof wants to merge 11 commits into
Cacti:developfrom
somethingwithproof:ci/monitor-workflow-hardening
Draft

ci: pin integration tests to Cacti 1.2.31#225
somethingwithproof wants to merge 11 commits into
Cacti:developfrom
somethingwithproof:ci/monitor-workflow-hardening

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Pins the Cacti checkout used by the integration workflow to release/1.2.31.

This makes CI exercise the declared Cacti 1.2.31 compatibility contract instead of a moving development branch.

Validation: workflow YAML diff reviewed; the exact release/1.2.31 ref is present in the local Cacti checkout.

somethingwithproof and others added 11 commits July 12, 2026 13:54
Pin actions/checkout (v5), shivammathur/setup-php (v2) and actions/upload-artifact (v4) to full commit SHAs with a trailing # vX comment. Mutable tags let a compromised or force-pushed tag run arbitrary code in CI; pinning to an immutable SHA is the supply-chain-hardening best practice and matches the SHA-pinned checkout used in the core security workflow.
Keep 1.2.31 pin while covering mid-stream PHP releases.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof added a commit to somethingwithproof/plugin_monitor that referenced this pull request Aug 18, 2026
The plugin shipped three test files that nothing ran: the workflow had no
reference to tests/ at all, so a suite covering request-variable output
escaping sat unexecuted.

Adopts the Pest-through-composer pattern from thold and mactrack, with a
bootstrap that stubs Cacti so plugin code loads without a full install. Two of
the three existing files were meaningful grep guards against raw request reuse
and are kept as Pest datasets; the third only asserted that htmlspecialchars()
works.

Pest 2 rather than mactrack's Pest 1, which no longer runs on current PHP. The
PHP 8.0 runtime floor is enforced by the syntax-floor job rather than a
composer platform pin, since the dev tooling needs 8.1.

Stacked on Cacti#225, so the SHA pinning and permissions block are inherited rather
than duplicated. Dependabot is left to Cacti#226.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant