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 548732e commit a8b72cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test_coverage_with_tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
COGNITO_PASSWORD: ${{ secrets.COGNITO_PASSWORD }}

run: |
echo $COGNITO_USER_POOL_ID
echo "$COGNITO_USER_POOL_ID"
echo ${{ secrets.COGNITO_USER_POOL_ID }}
echo "${{ secrets.COGNITO_USER_POOL_ID }}"
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")
export ACCESS_TOKEN=$(echo "$OUTPUT" | jq -r '.AuthenticationResult.AccessToken' | sed 's/^"\(.*\)"$/\1/')
Expand Down

0 comments on commit a8b72cb

Please sign in to comment.