Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Before tarring site, set file read permissions
Pages DFS needs the "group read" permission set on any file it serves,
so add read permission before tarring to prevent unreadable files from
being deployed.

This only applies to files that are built on an actions runner, not
files that are cloned from a git repoitory, because git's permissions
are limited to the equivalents of chmod 644 and 755.
  • Loading branch information
Jess Bees committed Nov 7, 2022
1 parent e02d70a commit 3cb2c0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Expand Up @@ -17,6 +17,7 @@ runs:
shell: sh
if: runner.os == 'Linux'
run: |
chmod -R +r .
tar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
Expand All @@ -32,6 +33,7 @@ runs:
shell: sh
if: runner.os == 'macOS'
run: |
chmod -R +r .
gtar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
Expand Down

0 comments on commit 3cb2c0f

Please sign in to comment.