Skip to content

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Codecommit sync #92

wants to merge 11 commits into from

Conversation

aron23
Copy link
Contributor

@aron23 aron23 commented May 23, 2024

No description provided.

@aron23 aron23 requested a review from a team as a code owner May 23, 2024 20:16
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}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Codacy found a medium Code Style issue: Double quote to prevent globbing and word splitting.

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:

Suggested change
git remote add sync ${CodeCommitUrl}
git remote add sync "${CodeCommitUrl}"

This comment was generated by an experimental AI tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant