kazurayam / materialstore

A domain-specific file system to store "materials" (screenshots, HTML, JSON, XML) collected during End-to-End testings using Selenium WebDriver etc. Features to make "diff" and compiling HTML reports are also included. This is written in pure Java8
Apache License 2.0
0 stars 0 forks source link

On GitHub Actions CI, the StoreOnS3Test failed due to "Unable to load AWS credentials from any provider in the chain" #403

Closed kazurayam closed 1 year ago

kazurayam commented 1 year ago

com.kazurayam.materialstore.core.filesystem.StoreOnS3Test passed when I ran it on my local Mac, but it failed in the GitHub Actions CI. The Gradle Build Scan showed an error message.

スクリーンショット 2023-01-10 9 25 46
kazurayam commented 1 year ago

Ah, yes. Now I know the reason why.

On my Mac, I have ~/.aws/credentials file where I have credential information of my "default" IAM User to use. On the GitHub Actions CI, there is nothing. Therefore the error occured.

kazurayam commented 1 year ago

I should use GitHub Secret to pass the credential information.

kazurayam commented 1 year ago

I will create the 2 GitHub Secrets in the materialstore repository

to which I would assign the value same as the default IAM user on my local Mac.


I will edit the .github/workflows/tests.yml file so that it creates a ~/.aws/credentails file like

[default]
aws_access_key_id = AKIA****************
aws_secret_access_key = MKTq************************************
kazurayam commented 1 year ago

done