Skip to content

provide an option to run without sudo #631

@christian-rauch

Description

@christian-rauch

Description

Inside Docker containers, processes usually run as root. The action uses sudo to install packages via apt. This has two downsides:

  1. You may have to install sudo to make the action work.
  2. Since sudo runs without -E environment variables are not forwarded.

Completion Criteria

The action should provide two options:

  1. flag to select if actions should run with or without sudo
  2. parameter to provide additional command line argument to sudo, e.g. -E.

Testing Notes / Suggestions

Add an additional test where the action runs as root without sudo being installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions