Skip to content
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

Fix code scanning alert no. 4: Incomplete regular expression for hostnames #726

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

jocgir
Copy link

@jocgir jocgir commented Nov 27, 2024

Fixes https://github.com/coveooss/terragrunt/security/code-scanning/4

To fix the problem, we need to escape the dot before amazonaws.com in the regular expression. This will ensure that the dot is treated as a literal character and not as a wildcard that can match any character. We can use a raw string literal to avoid having to escape backslashes.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…names

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
awshelper/s3.go Fixed Show fixed Hide fixed
@jocgir jocgir marked this pull request as ready for review November 27, 2024 01:26
@jocgir jocgir requested a review from a team as a code owner November 27, 2024 01:26
@jocgir jocgir enabled auto-merge (squash) November 27, 2024 11:42
@jocgir jocgir merged commit c07f64b into main Nov 27, 2024
11 checks passed
@jocgir jocgir deleted the alert-autofix-4 branch November 27, 2024 11:46
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.

2 participants