-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aws #26
Aws #26
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…HELL-STEPS into v0.6
chore: make textExistsInALine function process multiple values
… suppress warning
|
||
role_output=$(aws sts assume-role --role-arn "$ROLE_ARN" --role-session-name default) | ||
|
||
if [ $? -ne 0 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exit 1 | ||
fi | ||
|
||
AWS_ACCESS_KEY_ID=$(echo $role_output | jq -r '.Credentials.AccessKeyId') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fi | ||
|
||
AWS_ACCESS_KEY_ID=$(echo $role_output | jq -r '.Credentials.AccessKeyId') | ||
AWS_SECRET_ACCESS_KEY=$(echo $role_output | jq -r '.Credentials.SecretAccessKey') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
AWS_ACCESS_KEY_ID=$(echo $role_output | jq -r '.Credentials.AccessKeyId') | ||
AWS_SECRET_ACCESS_KEY=$(echo $role_output | jq -r '.Credentials.SecretAccessKey') | ||
AWS_SESSION_TOKEN=$(echo $role_output | jq -r '.Credentials.SessionToken') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
aws_creds=$(getEncryptedCredential "$CREDENTIAL_MANAGEMENT" "$CREDENTIAL_MANAGEMENT_NAME.CREDENTIAL_KEY_VALUE_PAIR") | ||
|
||
aws_access_key=$(echo $aws_creds | sed "s/'/\"/g" | jq -r '.aws_access_key') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SRC_BRANCH="$1" | ||
TGT_BRANCH="$2" | ||
CONFLICTING_FILES="$3" | ||
echo File,${SRC_BRANCH},${TGT_BRANCH} > fileAuthors.tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SRC_BRANCH="$1" | ||
TGT_BRANCH="$2" | ||
CONFLICTING_FILES="$3" | ||
echo File,${SRC_BRANCH},${TGT_BRANCH} > fileAuthors.tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
author=$(getLastAuthorOfFile "$BRANCH" "$FILE") | ||
echo "${FILE}: ${author}" | ||
# echo "Processing file [${FILE}]" | ||
src_branch_author=`getLastAuthorOfFile "${SRC_BRANCH}" "${FILE}"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# echo "Processing file [${FILE}]" | ||
src_branch_author=`getLastAuthorOfFile "${SRC_BRANCH}" "${FILE}"` | ||
# echo "Source branch Author: [${src_branch_author}]" | ||
tgt_branch_author=`getLastAuthorOfFile "${TGT_BRANCH}" "${FILE}"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done | ||
|
||
cat fileAuthors.tmp | csvlook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SRC_BRANCH="$1" | ||
TGT_BRANCH="$2" | ||
CONFLICTING_FILES="$3" | ||
echo File,${SRC_BRANCH},${TGT_BRANCH} > fileAuthors.tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shellcheck (suggestion)] reported by reviewdog 🐶
echo File,${SRC_BRANCH},${TGT_BRANCH} > fileAuthors.tmp | |
echo File,"${SRC_BRANCH}","${TGT_BRANCH}" > fileAuthors.tmp |
author=$(getLastAuthorOfFile "$BRANCH" "$FILE") | ||
echo "${FILE}: ${author}" | ||
# echo "Processing file [${FILE}]" | ||
src_branch_author=`getLastAuthorOfFile "${SRC_BRANCH}" "${FILE}"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shellcheck (suggestion)] reported by reviewdog 🐶
src_branch_author=`getLastAuthorOfFile "${SRC_BRANCH}" "${FILE}"` | |
src_branch_author=$(getLastAuthorOfFile "${SRC_BRANCH}" "${FILE}") |
# echo "Processing file [${FILE}]" | ||
src_branch_author=`getLastAuthorOfFile "${SRC_BRANCH}" "${FILE}"` | ||
# echo "Source branch Author: [${src_branch_author}]" | ||
tgt_branch_author=`getLastAuthorOfFile "${TGT_BRANCH}" "${FILE}"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shellcheck (suggestion)] reported by reviewdog 🐶
tgt_branch_author=`getLastAuthorOfFile "${TGT_BRANCH}" "${FILE}"` | |
tgt_branch_author=$(getLastAuthorOfFile "${TGT_BRANCH}" "${FILE}") |
No description provided.