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(core): only run the secret test when the needed env var is set #2056

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

loicmathieu
Copy link
Member

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@brian-mulier-p
Copy link
Member

It's not the issue I think, the problem is that I added a test-global environment variable SECRET_MY_SECRET which is intendedly wrong (not b64 encoded) so it shows a warning, we need to scope this environment variable to this test only

@brian-mulier-p
Copy link
Member

(added in build.gradle)

@loicmathieu
Copy link
Member Author

This allows clean build on env which didn't have the variable.
What you describe is that the logs are polluted but I don't think we can do something about it.

@brian-mulier-p
Copy link
Member

Oh you mean clean build on the core directly 👍

Copy link
Member

@brian-mulier-p brian-mulier-p left a comment

Choose a reason for hiding this comment

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

LGTM

@loicmathieu loicmathieu merged commit 74b83d8 into develop Sep 7, 2023
@loicmathieu loicmathieu deleted the fix/secret-test-on-local branch September 7, 2023 11:43
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