diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..191a043 --- /dev/null +++ b/action.yml @@ -0,0 +1,11 @@ +name: "Clean permissions" +description: "Sets all permissions in to . Needed for self-hosted runners that don't run as root. Requires passwordless sudo" + +runs: + using: "composite" + steps: + - name: Fix permissions from prev jobs (docker creates files as root) + shell: bash + run: | + echo TODO this is not a long term solution as each job in each workflow file needs to execute this + sudo chown -R $USER:$USER $GITHUB_WORKSPACE \ No newline at end of file