diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-04-23 01:40:01 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-04-23 01:40:24 +0900 |
commit | 6292271ef78328a9d520962625f8f1fe457895b3 (patch) | |
tree | 15778eb139a90ecea7e98b6fee4dfd8e0867f431 | |
parent | 1997e10f6caeae49660ceb9342a01a4fd2efc788 (diff) | |
download | ruby-6292271ef78328a9d520962625f8f1fe457895b3.tar.gz |
Fix permission of PATH
https://github.com/ruby/actions/runs/608526685?check_suite_focus=true
`warning: Insecure world writable dir /home/runner/.config in PATH, mode 040777`
-rw-r--r-- | .github/workflows/mjit.yml | 3 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 08a659e3e2..fbeed8d925 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -33,8 +33,9 @@ jobs: id: commit_info - name: Fixed world writable dirs run: | - chmod go-w $HOME + chmod -v go-w $HOME $HOME/.config sudo chmod -R go-w /usr/share + sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || : - name: Set ENV run: | echo '::set-env name=JOBS::'-j$((1 + $(nproc --all))) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index c98d05c1d7..17da8d1f70 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -39,8 +39,9 @@ jobs: id: commit_info - name: Fixed world writable dirs run: | - chmod go-w $HOME + chmod -v go-w $HOME $HOME/.config sudo chmod -R go-w /usr/share + sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || : - name: Set ENV run: | echo '::set-env name=JOBS::'-j$((1 + $(nproc --all))) |