-
Notifications
You must be signed in to change notification settings - Fork 150
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
Allow post-checkout scripts to run during CI dependency builds #749
Allow post-checkout scripts to run during CI dependency builds #749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To state the (possibly) obvious, this will make it all the more important to be careful to not clone sketchy repos that might do malicious or otherwise unwanted things with their Git hooks... But for the software used and foreseeably used in these workflows, I don't see this being a problem.
In the case of the crtm one that was causing issues, it's a hook that checks to see whether git-lfs is available. |
The unsafe behavior @AlexanderRichert-NOAA mentions concerns me. I am not familiar with git workflows. Is turning off protections via Why didn't we need to set |
@RussTreadon-NOAA It appears that this issue will be fixed soon by Git. As mentioned here, git-lfs (which CRTM uses) requires a post-checkout hook. Git will whitelist git-lfs soon so that the |
Thank you @DavidHuber-NOAA for sharing this. If the change will be implemented soon, my preference is to wait. We only have two active GSI PRs, excluding this one, at present. If we merge this PR into develop, we'll need to unmerge it via a subsequent PR later. What do @AlexanderRichert-NOAA and you think? |
I'm good with waiting. |
I believe this issue has been resolved by git now. I'm reverting the changes to allow CI to rerun. |
CI passed, closing this PR. |
Description
This tells
git
to allowpost-checkout
scripts to run during dependency building, which was disabled by default for security reasons in recent versions.Resolves #748
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
CI ran successfully after commit.
Checklist