0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Github Actionのset-envとadd-path非推奨

Posted at

2560px-GitHub_logo_2013.svg.png

2020/10/1 set-envとadd-pathがセキュリティ上の問題により非推奨、現在ではもう使えなくなっていますね
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
スクリーンショット 2021-03-23 23.20.47.png

ACTIONS_ALLOW_UNSECURE_COMMANDS を追加すると動くようですが、追加するより直した方が良いですね
スクリーンショット 2021-03-23 23.30.46.png

set-env

今まで

    echo '::set-env name=ENV::dev'

変更後

    echo 'ENV=dev' >> $GITHUB_ENV

add-path

今まで

    echo '::add-path::/tmp'

変更後

    echo echo '/tmp' >> $GITHUB_PATH

env、pathとも同じような書き方ですね、変更が少なくてよかった!!
しかし警告が出ていても、github action上はOKになっているので、全く気づきませんでした今後警告をどのようにして補足していくか課題です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?