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

Don't create the hydra.license if $HydraLicense is empty #2858

Merged

Conversation

dotta
Copy link
Contributor

@dotta dotta commented May 24, 2019

The sbt-hydra checks if a hydra.license file exists to decide whether it should enable
itself. Therefore, if the $HydraLicense is empty, it's important not to
create the hydra.license file.

The reason why the $HydraLicense can be empty is because its content is a
secret, hence it is available only to PRs created from within the repository.
Otherwise, the secret would be easily leaked.

This commit is a followup fix for 8069e09


I'm afraid the PR #2857 needs to include this fix to be validated. Sorry!

Please, don't hesitate to pull me and @dragos in if you hit any hurdle with Hydra.

The sbt-hydra checks if a hydra.license file exists to decide whether it should
enable itself. Therefore, if the $HydraLicense is empty, it's important not to
create the hydra.license file.

The reason why the $HydraLicense can be empty is because its content is a
secret, hence it is available only to PRs created from within the repository.
Otherwise, the secret would be easily leaked.

This commit is a followup fix for 8069e09
@codecov-io
Copy link

codecov-io commented May 24, 2019

Codecov Report

Merging #2858 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2858   +/-   ##
=======================================
  Coverage   94.21%   94.21%           
=======================================
  Files         368      368           
  Lines        6948     6948           
  Branches      307      308    +1     
=======================================
  Hits         6546     6546           
  Misses        402      402

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8069e09...05ab6c7. Read the comment docs.

@kailuowang
Copy link
Contributor

@dotta thanks for finding the fix.
I am going to merge with one sign off since it's simple build change but also urgent.

@kailuowang kailuowang merged commit 4c2b6ff into typelevel:master May 24, 2019
@dotta dotta deleted the issue/fix-pr-validation-from-forks branch May 24, 2019 13:37
@kailuowang kailuowang added this to the 2.0.0-M2 milestone Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants