Skip to content

Conversation

@nmburgan
Copy link
Member

@nmburgan nmburgan commented Sep 2, 2025

In order to prevent file ownership issues when extracting the tarball, we were chowning all files to root before creating the tarball. Using chown on Windows in Cygywin in GitHub Actions is dicey, so instead, we use the appropriate tar flags to ensure all files have ownership by 0:0. When extracted, if extracting as a non-root user, since a non-root user can't create files they don't have access to, that user will end up owning the files.

@nmburgan
Copy link
Member Author

nmburgan commented Sep 2, 2025

Testing here. Tested with all other Linux types in a previous run. If Windows fails the S3 upload, it's almost definitely for a different reason.
https://github.com/OpenVoxProject/puppet-runtime/actions/runs/17417219560/job/49448318818

In order to prevent file ownership issues when extracting the tarball,
we were chowning all files to root before creating the tarball. Using
chown on Windows in Cygywin in GitHub Actions is dicey, so instead, we
use the appropriate tar flags to ensure all files have ownership by 0:0.
When extracted, if extracting as a non-root user, since a non-root user
can't create files they don't have access to, that user will end up
owning the files.
@nmburgan nmburgan force-pushed the remove_chown_archive branch from 1101764 to 65c01a7 Compare September 2, 2025 22:28
@nmburgan nmburgan merged commit e5f7c67 into main Sep 3, 2025
8 checks passed
@nmburgan nmburgan deleted the remove_chown_archive branch September 3, 2025 00:34
@bastelfreak bastelfreak added the bug Something isn't working label Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants