Skip to content

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

Merged
TheWitness merged 3 commits into
mainfrom
security/actions-hardening-20261013
Oct 19, 2026
Merged

TheWitness merged 3 commits into
mainfrom
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.

@sonarqubecloud

Copy link
Copy Markdown

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof
somethingwithproof force-pushed the security/actions-hardening-20261013 branch from 91247f4 to dbd43aa Compare October 17, 2026 21:23
@somethingwithproof
somethingwithproof marked this pull request as ready for review October 17, 2026 23:48
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

@TheWitness TheWitness left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: pins the MariaDB image by digest, pins the shared CI tooling to an immutable Cacti commit (verified it exists and contains the setup-plugin-dependencies action), installs locked test dependencies, and tightens workflow permissions/credentials. CI is green. LGTM.

@TheWitness
TheWitness merged commit fc04fb6 into main Oct 19, 2026
7 checks passed
@TheWitness
TheWitness deleted the security/actions-hardening-20261013 branch October 20, 2026 17:30
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.

2 participants