Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub Actions permission issues by defaulting Dev images to run as the root user #88

Closed
wants to merge 1 commit into from

Conversation

kowh-ai
Copy link
Contributor

@kowh-ai kowh-ai commented Nov 17, 2024

Fixes: #86

The merge of PR #80 introduced issues with GitHub Actions workflows that rely on the Dev images. GitHub Actions uses a github user to execute commands inside Docker containers. This user typically has a UID/GID of 1001, but it may vary depending on the container configuration.

With the updated CKAN images now running as a non-root user (ckan/ckan-sys with UID/GID 503/502), permission issues can arise during GitHub Actions workflows.

As a temporary workaround, workflows can include an option to run the CKAN container as the root user.

This PR modifies the Dev images to default to running as the root user while preserving the ability to run as a non-root user when needed.

Base automatically changed from simplify-repo to main November 19, 2024 08:26
@amercader
Copy link
Member

Closing as discussed in the dev meeting: #86 (comment)

@amercader amercader closed this Nov 21, 2024
@amercader amercader deleted the revert-non-root-permissions branch November 21, 2024 14:04
@amercader amercader restored the revert-non-root-permissions branch November 21, 2024 14:05
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.

GitHub Actions break using the new (non-root) CKAN images
2 participants