Skip to content

GitHub Actions hardening #50

@zimbatm

Description

@zimbatm

Is your feature request related to a problem? Please describe.

Right now, the runners are accepting multiple jobs, and that can leave some files around. Runners can run arbitrary code and are open to the world to be executed.

Describe the solution you'd like

I don't know if that's already the case but the design would be:

  • Use a DynamicUser
  • Use a PreStart that wipes the WorkingDirectory
  • Configure the runner so that it only runs a single job and then exists
  • Configure the unit, so it gets restarted on exit.

Describe alternatives you've considered

Additional context

What do you think @jfroche ?

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