Skip to content

Commit

Permalink
update all addons (#120)
Browse files Browse the repository at this point in the history
### Changes:
  - Description of the change

**Ticket:** https://soos.atlassian.net/browse/PA-0000

<!---
If you've edited any of the arguments for this package:

1. Run this script with the --helpFormatted argument (ex. soos-dast
--helpFormatted)
2. Copy the result and paste it in the README under '### Script
Arguments'
3. Make sure your terminal didn't wrap any lines, confirm the table
looks correct
-->
  • Loading branch information
SOOS-JJennings authored Jul 1, 2024
1 parent aadec13 commit 335fe32
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
13 changes: 1 addition & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM soosio/zap2docker-soos as base
FROM zaproxy/zap-stable:2.15.0 as base

USER root

Expand All @@ -25,17 +25,6 @@ RUN mkdir /zap/wrk && cd /opt \
&& ln -s /opt/geckodriver /usr/bin/geckodriver \
&& export PATH=$PATH:/usr/bin/geckodriver

RUN cd /zap/plugin && \
rm -rf ascanrules-* && wget https://github.com/zaproxy/zap-extensions/releases/download/ascanrules-v58/ascanrules-release-58.zap && \
rm -rf ascanrulesBeta-* && wget https://github.com/zaproxy/zap-extensions/releases/download/ascanrulesBeta-v48/ascanrulesBeta-beta-48.zap && \
rm -rf commonlib-* && wget https://github.com/zaproxy/zap-extensions/releases/download/commonlib-v1.18.0/commonlib-release-1.18.0.zap && \
rm -rf reports* && wget https://github.com/zaproxy/zap-extensions/releases/download/reports-v0.26.0/reports-release-0.26.0.zap && \
rm -rf network-* && wget https://github.com/zaproxy/zap-extensions/releases/download/network-v0.12.0/network-beta-0.12.0.zap && \
rm -rf oast-* && wget https://github.com/zaproxy/zap-extensions/releases/download/oast-v0.17.0/oast-beta-0.17.0.zap && \
rm -rf pscanrules-* && wget https://github.com/zaproxy/zap-extensions/releases/download/pscanrules-v52/pscanrules-release-52.zap && \
rm -rf pscanrulesBeta-* && wget https://github.com/zaproxy/zap-extensions/releases/download/pscanrulesBeta-v38/pscanrulesBeta-beta-38.zap && \
chown -R zap:zap /zap

# Set up Chrome version to be used
ARG CHROME_VERSION="125.0.6422.141-1"

Expand Down
6 changes: 0 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export interface SOOSDASTAnalysisArgs extends IBaseScanArguments {
requestHeaders: string;
scanMode: ScanMode;
targetURL: string;
updateAddons: boolean;
}

class SOOSDASTAnalysis {
Expand Down Expand Up @@ -244,11 +243,6 @@ class SOOSDASTAnalysis {
},
);

analysisArgumentParser.argumentParser.add_argument("--updateAddons", {
help: "Update ZAP Addons - Update ZAP Addons before running the scan.",
action: "store_true",
});

analysisArgumentParser.argumentParser.add_argument("targetURL", {
help: "Target URL - URL of the site or api to scan. The URL should include the protocol. Ex: https://www.example.com",
});
Expand Down
5 changes: 0 additions & 5 deletions src/utilities/ZAPCommandGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const SOOS_ZAP_CONSTANTS = {
JsonReport: "-J",
SpiderMinutes: "-m",
TargetUrl: "-t",
UpdateAddons: "--updateAddons",
},
Scripts: {
ApiScan: "/zap/zap-api-scan.py",
Expand Down Expand Up @@ -80,10 +79,6 @@ export class ZAPCommandGenerator {
args.push(this.config.otherOptions);
}

if (this.config.updateAddons) {
args.push(SOOS_ZAP_CONSTANTS.Options.UpdateAddons);
}

return args.join(" ");
}

Expand Down

0 comments on commit 335fe32

Please sign in to comment.