Skip to content

CI: set Cacti fixture ownership to runner:www-data in Setup Permissions - #8

Merged
TheWitness merged 1 commit into
mainfrom
ci/setup-permissions-ownership
Nov 3, 2026
Merged

TheWitness merged 1 commit into
mainfrom
ci/setup-permissions-ownership

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Summary

Aligns the Setup Permissions step of the plugin CI workflow with the fix from Cacti/plugin_evidence#63.

The step previously chowned the Cacti fixture tree to www-data:runner. Composer runs as the runner user in a later step and calls touch() while generating the fixture autoloader; utime() only succeeds for the file owner, so the runner user must own the tree. This changes ownership to runner:www-data (www-data retained as the group), with an explanatory comment.

Change

-        sudo chown -R www-data:runner ${{ github.workspace }}/cacti
+        sudo chown -R runner:www-data ${{ github.workspace }}/cacti

Fleet-wide consistency update across plugin_* repositories.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Composer runs as the runner user in a later CI step and calls touch()
while generating the fixture autoloader; utime() only succeeds for the
file owner, so the runner user must own the tree. www-data is retained
as group and ownership is handed back before polling. Mirrors the fix
in Cacti/plugin_evidence#63.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 20:08
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The ownership explanation incorrectly implies Composer runs as runner, although both Composer commands use sudo and execute as root.

1 open issue
What changed in this PR

Updates the plugin CI workflow’s Cacti fixture ownership to runner:www-data, aligning setup permissions with the fleet-wide change.

Changes:

  • Makes runner the fixture owner while retaining www-data group access.
  • Adds explanatory comments about setup ownership and the later handoff before polling.
File Description
.github/​workflows/​plugin-ci-workflow.yml Changes fixture ownership in Setup Permissions and adds explanatory comments.

Review effort: Balanced

@somethingwithproof somethingwithproof 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.

No blockers found.

@TheWitness
TheWitness merged commit 443f562 into main Nov 3, 2026
6 checks passed
@TheWitness
TheWitness deleted the ci/setup-permissions-ownership branch November 3, 2026 16:39
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.

3 participants