-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use cisagov fork of gophish #24
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ ARG VERSION | |
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.vendor="Cybersecurity and Infrastructure Security Agency" | ||
|
||
ARG GOPHISH_VERSION="0.7.1" | ||
ARG GOPHISH_VERSION="0.11.0-cisa.1" | ||
ARG CISA_UID=421 | ||
ENV CISA_HOME="/home/cisa" \ | ||
SCRIPT_DIR="/usr/local/bin" | ||
|
@@ -30,7 +30,12 @@ COPY bin/get-api-key ${SCRIPT_DIR} | |
|
||
USER cisa | ||
WORKDIR ${CISA_HOME} | ||
RUN wget -nv https://github.com/gophish/gophish/releases/download/${GOPHISH_VERSION}/gophish-v${GOPHISH_VERSION}-linux-64bit.zip && \ | ||
# TODO: Revert from cisagov/gophish back to gophish/gophish after all of our | ||
# pull requests have been merged; including, but potentially not limited to: | ||
# - https://github.com/gophish/gophish/pull/1484 | ||
# - https://github.com/gophish/gophish/pull/1486 | ||
# See https://github.com/cisagov/gophish-docker/issues/25 for details. | ||
RUN wget -nv https://github.com/cisagov/gophish/releases/download/v${GOPHISH_VERSION}/gophish-v${GOPHISH_VERSION}-linux-64bit.zip && \ | ||
unzip gophish-v${GOPHISH_VERSION}-linux-64bit.zip && \ | ||
rm -f gophish-v${GOPHISH_VERSION}-linux-64bit.zip | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.0.5" | ||
__version__ = "0.0.6" |
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.
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.
Why you no use
+
metadata?e.g.,
0.11.0+cisa.1
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.
Thanks @felddy for the reminder about this. I did use
+
instead of-
originally, but when GitHub Actions created the release assets (e.g. https://github.com/cisagov/gophish/releases/tag/v0.11.0-cisa.1), the download URLs for the platform-specific zip files were different from what was expected.Instead of generating URLs like this:
https://github.com/cisagov/gophish/releases/download/v0.11.0%2Bcisa.1/gophish-v0.11.0%2Bcisa.1-linux-64bit.zip
GitHub Actions was generating URLs like this:
https://github.com/cisagov/gophish/releases/download/v0.11.0%2Bcisa.1/gophish-v0.11.0.cisa.1-linux-64bit.zip
The first
+
was being correctly URL encoded to%2B
, but the second one was being converted to a.
and that was going to be a hassle for us here:gophish-docker/Dockerfile
Lines 33 to 35 in f21b923