diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f5b59011..1f5354bf 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -62,7 +62,7 @@ jobs: - uses: docker://docker.io/nixos/nix@sha256:c3db4c484f6b1ee6c9bb8ca90307cfbeca8ef88156840911356a677eeaff4845 name: /dev/example with: - args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /dev/example" + args: m . /dev/example macos_dev_example: runs-on: macos-latest steps: diff --git a/docs/src/getting-started.md b/docs/src/getting-started.md index 50376796..d9aba2dd 100644 --- a/docs/src/getting-started.md +++ b/docs/src/getting-started.md @@ -88,9 +88,17 @@ Example: - uses: docker://ghcr.io/fluidattacks/makes/amd64:24.02 name: helloWorld with: - args: m . /helloWorld 1 2 3 + args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /helloWorld 1 2 3" ``` + ???+ note + + We use `chown -R root:root /github/workspace` to change the ownership + of the `/github/workspace` directory to the root user and group. + + This is necessary because GitHub Actions runs each job in a new instance of a virtual + environment and assigns the `runner` user as the owner of the workspace directory. + === "GitLab CI" ```yaml