-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Reduce image size by adding flag depth 1 when git cloning #333
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ShutdownRepo
approved these changes
Apr 15, 2024
ShutdownRepo
added
enhancement
New feature or request
under review
Time to think about the need / implementation
labels
Apr 15, 2024
It may be a deliberate "miss". I have to check if it works even if we add depth 1 |
Let’s see what the runners think 😄 |
Hey @gbe, Can you push a commit to sync the pipeline ? |
Done |
QU35T-code
approved these changes
Apr 15, 2024
Pipeline is ok ☑️ |
QU35T-code
added
ready for merge
in the waitlist for merge, requires preliminary steps
and removed
under review
Time to think about the need / implementation
labels
Apr 15, 2024
ShutdownRepo
approved these changes
Apr 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
ready for merge
in the waitlist for merge, requires preliminary steps
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed that some tools missed the flag
--depth 1
forgit clone
.For some tools, it was simply forgotten.
For others, the flag --depth 1 was removed for temp fixes reasons.
This PR reinstates the depth flag to clone directly the appropriate branch in a single command instead of doing a
git clone
followed by agit checkout
:Example with sliver:
git -C /opt/tools/ clone --branch v1.5.41 --depth 1 https://github.com/BishopFox/sliver.git
Another with Bloodhound-CE:
git -C /opt/tools/ clone --branch bloodhound-ce --depth 1 https://github.com/dirkjanm/BloodHound.py BloodHound-CE.py
About sliver, I moved the temp fix criticalecho at the beginning of the function to only clone the repo if the date condition is met. I hope it's ok like this.