Skip to content

Commit

Permalink
use differnt credentials in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ianic committed Dec 4, 2021
1 parent fdb4c70 commit cfd7883
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ var (
func setAwsEnv() {
// unit-test user in unit-test aws account
awsAccountID = "418101788216"
os.Setenv("AWS_ACCESS_KEY_ID", "AKIAWCWGO7Y4OIY7X2UU")
os.Setenv("AWS_SECRET_ACCESS_KEY", "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")
os.Setenv("AWS_DEFAULT_REGION", "eu-central-1")
if !aws.InGithubAction() { // github actions sets session based tokens
os.Setenv("AWS_ACCESS_KEY_ID", "AKIAWCWGO7Y4OIY7X2UU")
os.Setenv("AWS_SECRET_ACCESS_KEY", "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")
os.Setenv("AWS_DEFAULT_REGION", "eu-central-1")
}
}

func TestMain(m *testing.M) {
Expand Down

0 comments on commit cfd7883

Please sign in to comment.