From 6292271ef78328a9d520962625f8f1fe457895b3 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Thu, 23 Apr 2020 01:40:01 +0900 Subject: [PATCH] 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` --- .github/workflows/mjit.yml | 3 ++- .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)))