You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a self-hosted runner on an EC2 instance that has the necessary IAM permissions granted via its instance profile.
On this instance, I am able to successfully interact with CodeBuild via the AWS CLI and Node.js SDK.
However, attempting to use this action fails with the message "No credentials. Try adding @aws-actions/configure-aws-credentials earlier in your job to set up AWS credentials."
I think the assertion below is not correct. In some cases, credentials are available, they just have not been initialized yet.
I have a self-hosted runner on an EC2 instance that has the necessary IAM permissions granted via its instance profile.
On this instance, I am able to successfully interact with CodeBuild via the AWS CLI and Node.js SDK.
However, attempting to use this action fails with the message "No credentials. Try adding @aws-actions/configure-aws-credentials earlier in your job to set up AWS credentials."
I think the assertion below is not correct. In some cases, credentials are available, they just have not been initialized yet.
aws-codebuild-run-build/code-build.js
Lines 228 to 231 in c5df628
The following test script can be used to demonstrate this.
If I run it on my EC2 instance, the output is
So you can see that it was null at first, which is why your assertion failed, but that the API call actually succeeded.
I think the assertion should be reworked somehow to be more robust, or you could just remove it and catch and report permissions failures.
The text was updated successfully, but these errors were encountered: