Skip to content

Error mkdir setting up /opt #18297

Description

@plengauer

I have this workflow run where i get this error:

Copying activation files to /opt/gh-aw/actions
Safe-output-projects support: false
mkdir: cannot create directory ‘/opt/gh-aw’: Permission denied

I think it stems from me preinstalling some packages on the runner that also installs files in /opt. I think the code here https://github.com/github/gh-aw/blob/main/actions/setup/setup.sh makes a wrong assumption, namely that /opt is not root owned on Linux.

Running ls /opt on ubuntu-latest runner or just an ubuntu:latest docker image, always shows /opt being root owned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions