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

Strict type Dependabot::Terraform::RegistryClient #10643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JamieMagee
Copy link
Contributor

What are you trying to accomplish?

Strict type Dependabot::Terraform::RegistryClient

Anything you want to highlight for special attention from reviewers?

How will you know you've accomplished your goal?

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@JamieMagee JamieMagee added the sorbet 🍦 Relates to Sorbet types label Sep 20, 2024
@JamieMagee JamieMagee requested a review from a team as a code owner September 20, 2024 03:46
@github-actions github-actions bot added the L: terraform Terraform packages label Sep 20, 2024
@JamieMagee JamieMagee force-pushed the jamiemagee/terraform-registry-client branch from ca91212 to 2350f73 Compare September 20, 2024 03:56
@@ -241,7 +241,7 @@ def git_source_details_from(source_string)
if git_url.include?("git@")
git_url.split("git@").last.sub(":", "/")
else
git_url.sub(%r{.*?://}, "")
git_url.sub(%r{(?:\w{3,5})?://}, "")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixed the CodeQL issue that was flagged. All protocols git allowes are betwen 3 and 5 characters: git, ssh, http, https, file.

@JamieMagee JamieMagee force-pushed the jamiemagee/terraform-registry-client branch from 7b4d89b to 32b9cdc Compare September 20, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: terraform Terraform packages sorbet 🍦 Relates to Sorbet types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant