Skip to content

Commit

Permalink
fix(github-actions): only change temporary directory to ensure write …
Browse files Browse the repository at this point in the history
…access

Using `644` without the `x` bit for directories means that the directory
cannot be modified. i.e. no files can be created. We should not modify
this bit but rather just ensure the folder is writeable and individual
files have the `w` bit.
  • Loading branch information
devversion committed Nov 29, 2022
1 parent 49d2afa commit 4172435
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
dir="$RUNNER_TEMP/pack-and-upload-tmp-dir"
mkdir -p $dir
cp -R "${{inputs.deploy-directory}}" "$dir"
chmod -R 644 "$dir"
chmod -R u+w "$dir"
echo "deploy-dir=$dir" >> $GITHUB_OUTPUT
- name: Injecting artifact metadata
Expand Down

0 comments on commit 4172435

Please sign in to comment.