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

Basic check for insecure curl/wget requests #464

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

crogoz
Copy link
Contributor

@crogoz crogoz commented Nov 13, 2024

Before this PR

After this PR

Extra checks that would avoid bugs like here: https://github.com/palantir/gradle-jdks/pull/452/files#diff-eab8ad98fab9b4edb9ec2349b5d7a41d5c93bf016e9f409511c6ef497d8c2facR146 where insecure flags were introduced in curl requests

==COMMIT_MSG==
Basic check for insecure curl/wget requests
==COMMIT_MSG==

Possible downsides?

@crogoz crogoz requested a review from CRogers November 13, 2024 13:58
Comment on lines 32 to 33
List<String> lines = Files.readAllLines(Path.of("src/main/resources/gradle-jdks-functions.sh"));
for (String line : lines) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just File.readString here and match on the whole string?

@@ -0,0 +1,5 @@
type: fix
fix:
description: Basic check for insecure curl/wget requests
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably don't need changelog or a release for this.

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

Successfully merging this pull request may close these issues.

3 participants