Skip to content

Commit

Permalink
getting to learn GitHub actions secret management
Browse files Browse the repository at this point in the history
  • Loading branch information
izaim committed Mar 25, 2024
1 parent 2440dfb commit 548732e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_coverage_with_tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

run: |
pip install awscli
OUTPUT=$(aws cognito-idp $COGNITO_INIT --user-pool-id $COGNITO_USER_POOL_ID --client-id $COGNITO_CLIENT_ID --auth-flow $COGNITO_AUTH_FLOW --auth-parameters USERNAME=$COGNITO_USERNAME,PASSWORD=$COGNITO_PASSWORD)
OUTPUT=$(aws cognito-idp "$COGNITO_INIT" --user-pool-id "$COGNITO_USER_POOL_ID" --client-id "$COGNITO_CLIENT_ID" --auth-flow "$COGNITO_AUTH_FLOW" --auth-parameters USERNAME="$COGNITO_USERNAME",PASSWORD="$COGNITO_PASSWORD")
export ACCESS_TOKEN=$(echo "$OUTPUT" | jq -r '.AuthenticationResult.AccessToken' | sed 's/^"\(.*\)"$/\1/')
export ID_TOKEN=$(echo "$OUTPUT" | jq -r '.AuthenticationResult.IdToken' | sed 's/^"\(.*\)"$/\1/')
Expand Down

0 comments on commit 548732e

Please sign in to comment.