Skip to content

Error mkdir setting up /opt #18297

@plengauer

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions