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

Document unprivileged user in GitHub workflows #12

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Commits on Feb 5, 2024

  1. Document unprivileged user in GitHub workflows

    At some point GitHub changed things so that the entrypoint script does
    not run, so the `AS_USER` variable does nothing. Which is just as well,
    because that user would have no permissions, so even a checkout will
    fail.
    
    So remove the GitHib-specific stuff from `entrypoint.sh` and separately
    document running the container with the CLI and as a GitHub workflow.
    Add a new section describing how to use `gosu` directly in a GitHub
    workflow to execute commands as an unprivileged user.
    
    Thanks to @pgguru for figuring out the technique.
    theory committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    91086d9 View commit details
    Browse the repository at this point in the history