-
Notifications
You must be signed in to change notification settings - Fork 1
Codecommit sync #92
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
base: main
Are you sure you want to change the base?
Codecommit sync #92
Conversation
git config --global --add safe.directory /github/workspace | ||
git config --global credential.'https://git-codecommit.*.amazonaws.com'.helper '!aws codecommit credential-helper $@' | ||
git config --global credential.UseHttpPath true | ||
git remote add sync ${CodeCommitUrl} |
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.
The issue identified by ShellCheck is related to the use of unquoted variable expansions. When variables are not quoted, they can undergo word splitting and globbing (filename expansion), which can lead to unexpected behavior, especially if the variable contains spaces or special characters.
In the line git remote add sync ${CodeCommitUrl}
, the variable ${CodeCommitUrl}
should be enclosed in double quotes to prevent such issues.
Here is the code suggestion to fix the issue:
git remote add sync ${CodeCommitUrl} | |
git remote add sync "${CodeCommitUrl}" |
This comment was generated by an experimental AI tool.
No description provided.