Skip to content

Commit

Permalink
Make the dojo_url basepath
Browse files Browse the repository at this point in the history
in tests dojo_url is a full api path while in secrets we have only a
base url. Ensure all tasks explicitly construct required url.

Signed-off-by: Artem Goncharov <[email protected]>
  • Loading branch information
gtema committed Dec 5, 2024
1 parent 4047cfa commit c58875a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .zuul.d/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
- zuul.sovereignit.cloud

pipeline_conf:
dojo_url: https://demo.defectdojo.com/api/v2/import-scan/
dojo_url: https://demo.defectdojo.com
daily_scan_engagement_id: 1
weekly_scan_engagement_id: 1
dojo_auth: "Basic YWRtaW46MURlZmVjdGRvam9AZGVtbyNhcHBzZWM="
Expand Down
2 changes: 1 addition & 1 deletion playbooks/greenbone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
- name: Send Greenbone results to Defect Dojo
no_log: true
ansible.builtin.uri:
url: "{{ pipeline_conf.dojo_url }}"
url: "{{ pipeline_conf.dojo_url }}/api/v2/import-scan"
headers:
Authorization: "{{ ('Token ' + pipeline_conf.dojo_api_key) if pipeline_conf.dojo_api_key is defined else pipeline_conf.dojo_auth }}"
method: "POST"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/nuclei.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- name: Send Nuclei results to Defect Dojo
#no_log: true
ansible.builtin.uri:
url: "{{ pipeline_conf.dojo_url }}"
url: "{{ pipeline_conf.dojo_url }}/api/v2/import-scan"
headers:
Authorization: "{{ ('Token ' + pipeline_conf.dojo_api_key) if pipeline_conf.dojo_api_key is defined else pipeline_conf.dojo_auth }}"
method: "POST"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/owasp-zap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- name: Send Zap results to Defect Dojo
# no_log: true
ansible.builtin.uri:
url: "{{ pipeline_conf.dojo_url }}"
url: "{{ pipeline_conf.dojo_url }}/api/v2/import-scan"
headers:
Authorization: "{{ ('Token ' + pipeline_conf.dojo_api_key) if pipeline_conf.dojo_api_key is defined else pipeline_conf.dojo_auth }}"
method: "POST"
Expand Down

0 comments on commit c58875a

Please sign in to comment.