ruby-changes:60872
From: Kazuhiro <ko1@a...>
Date: Thu, 23 Apr 2020 01:41:18 +0900 (JST)
Subject: [ruby-changes:60872] 6292271ef7 (master): Fix permission of PATH
https://git.ruby-lang.org/ruby.git/commit/?id=6292271ef7 From 6292271ef78328a9d520962625f8f1fe457895b3 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Thu, 23 Apr 2020 01:40:01 +0900 Subject: 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` diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 08a659e..fbeed8d 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -33,8 +33,9 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mjit.yml#L33 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 c98d05c..17da8d1 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -39,8 +39,9 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L39 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))) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/