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

Remove binary artifacts due to security policy violation #1538

Merged
merged 11 commits into from
Feb 5, 2024

Conversation

mateuszkuta256
Copy link
Contributor

Description
This PR removes .jar files that trigger security violation alert

Motivation
Resolves issue created by Allstar bot #1458

Copy link
Collaborator

@liucijus liucijus left a comment

Choose a reason for hiding this comment

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

@mateuszkuta256 thanks for taking this!

Please check if using implicit jar output can be used in places where original external jar was imported, like in this example

Copy link
Collaborator

@liucijus liucijus left a comment

Choose a reason for hiding this comment

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

@mateuszkuta256 I think we are very close to get this merged, please address the comments. Thanks for the patience.

test/example_jars/expected_service_manifest.txt Outdated Show resolved Hide resolved
test/src/main/scala/scalarules/test/resource_jars/BUILD Outdated Show resolved Hide resolved
external_jars = [
"bare-thrift-1.jar",
],
srcs = ["//test/src/main/resources/scalarules/test:Bar.thrift"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above. Do you know why the second test is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now I reference .jar directly
the second test is meant for test_version.sh, apparently every test running against various versions has its copy there

@@ -9,7 +9,7 @@ thrift_library(

scrooge_scala_import(
name = "thrift3_import",
scala_jars = ["thrift3_scrooge.jar"],
scala_jars = ["//test/src/main/scala/scalarules/test/twitter_scrooge:scrooge3"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like a comment (in the code) here about what's going on. Just by looking at the test is very hard to understand what's going on and how is it being tested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kk, hope the comment I added is useful
thx for your patience too ;D

Copy link
Collaborator

@liucijus liucijus left a comment

Choose a reason for hiding this comment

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

🥇

@simuons simuons merged commit 271df7f into bazelbuild:master Feb 5, 2024
2 checks passed
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.

3 participants