6
1

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 1 year has passed since last update.

GithubActiionsで「Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers」の対応

Posted at

エラー

image.png

エラー箇所

  - name: setup aws
    uses: aws-actions/configure-aws-credentials@v1
    with:
      role-to-assume: ${{ env.AWS_ROLE_ARN }}
      aws-region: ap-northeast-1

原因

WorkflowへのPermission不足
以下を追記してあげると動くかも

permissions:
  id-token: write
  contents: read

参考

6
1
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
6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?