Skip to content

ci: pin the database image and install locked shared test dependencies - #45

Open
somethingwithproof wants to merge 3 commits into
developfrom
security/actions-hardening-20261013
Open

somethingwithproof wants to merge 3 commits into
developfrom
security/actions-hardening-20261013

Conversation

@somethingwithproof

@somethingwithproof somethingwithproof commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

CI currently changes Cacti's Composer manifest and resolves dependencies during each run. Check out the current Cacti branch head, pin the MariaDB image, install committed locks through the shared core action, and run Composer as the runner user. Set read-only permissions, disable persisted checkout credentials, cap integration jobs at 45 minutes, and cancel superseded PR runs. Add Actions updates where missing.

The existing events, matrix, job names, PHPUnit configuration, coverage thresholds, plugin schema/localization checks and polling steps are retained. No plugin-local test manifest is added. Stream retains its own runtime dependency contract.

Validation: full actionlint including shellcheck passes. The shared harness passes Thold's Linux tests and FlowView/Stream unit tests. Syslog's two unit failures reproduce with the existing core Pest toolchain. GitHub integration checks on this PR must complete before merge.

Depends on Cacti/cacti#8345. Merge the shared core tooling before this caller migration. The tooling is sparse-checked out at the published helper commit because Cacti source archives exclude CI files. No secrets are passed to the helper.

Also fail when the background poller wait times out, so the log check cannot pass while polling is still running.

The poller wait step now exits 1 when poller_apcupsd.php is still running after its timeout, as routerconfigs already does, so a stuck poller fails the job instead of passing silently.

@sonarqubecloud

Copy link
Copy Markdown

@somethingwithproof
somethingwithproof force-pushed the security/actions-hardening-20261013 branch 2 times, most recently from 820ec4f to 26f9b81 Compare October 17, 2026 21:16
@somethingwithproof
somethingwithproof marked this pull request as ready for review October 17, 2026 23:48
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof
somethingwithproof force-pushed the security/actions-hardening-20261013 branch from 26f9b81 to c7368ec Compare October 17, 2026 23:55
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof somethingwithproof changed the title ci: pin fixtures and install locked shared test dependencies ci: pin the database image and install locked shared test dependencies Oct 18, 2026
@sonarqubecloud

Copy link
Copy Markdown

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