もがき系プログラマの日常

もがき系エンジニアの勉強したこと、日常のこと、気になっている技術、備忘録などを紹介するブログです。

github actionでconfigure-aws-credentialsを使うときに警告が出てた

はじめに

こんばんは。 頑張って github actionでデプロイできる環境を構築中です。

今回は簡単な報告

github actionからawsの操作を行うためによく使う aws-actions/configure-aws-credentials が警告を吐いていたので調べました。

本題

aws-actions/configure-aws-credentials を使うとこんな警告が出てました。

なんだなんだ?とみてみると READMEにこんな文言が

NOTICE: node12 deprecation warning
GitHub actions has recently started throwing warning messages regarding the deprecation of Node 12. If you would like to stop seeing this warning, configure your action to use aws-actions/configure-aws-credentials@v1-node16. Both the v1 branch and the v1-node16 branch will receive the same updates moving forward. See this issue for more information on this topic.

github.com

github actionがnode12の使用に警告を出し始めてて、その警告を消すためには v1-node16 を使用してね。

ってことみたいです。なので、以下みたいに対応しました。

    steps:
      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1-node16
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: ${{ secrets.AWS_DEFAULT_REGION }}

終わりに

調べてみると クラスメソッドさんがまさにな記事を上げてくれていました。

dev.classmethod.jp

僕の場合はクラスメソッドさんの記事にある 引き続きwarningが出る場合 の現象には出会ってないのです。

現場からは以上です。