Skip to content
Snippets Groups Projects
Commit 90141033 authored by qweqweasdasd's avatar qweqweasdasd
Browse files

Fix python command line

parent 6d95af25
No related branches found
No related tags found
No related merge requests found
...@@ -71,20 +71,10 @@ ...@@ -71,20 +71,10 @@
command: python3 /home/gmp/script.py "{{ endpoints_to_scan }}" "{{ paas_ci_workdir + '/dep.json'}}" "{{ paas_ci_workdir }}" command: python3 /home/gmp/script.py "{{ endpoints_to_scan }}" "{{ paas_ci_workdir + '/dep.json'}}" "{{ paas_ci_workdir }}"
register: scan_output register: scan_output
- name: Find reports files in workspace forlder" - name: display report
find:
paths: "{{ paas_ci_workdir }}"
patterns: "*report.txt"
file_type: "file"
register: report_files
- debug:
var: report_files
- name: display all reports
ansible.builtin.debug: var=item ansible.builtin.debug: var=item
with_file: with_file:
- "{{ report_files }}" - "{{ paas_ci_workdir + '/report.txt' }}"
- name: get Severity file content - name: get Severity file content
ansible.builtin.debug: var=item ansible.builtin.debug: var=item
...@@ -95,6 +85,9 @@ ...@@ -95,6 +85,9 @@
- name: save the Json data to a Variable as a Fact - name: save the Json data to a Variable as a Fact
set_fact: set_fact:
severity_json: "{{ severity | from_json }}" severity_json: "{{ severity | from_json }}"
- debug:
var: severity_json
- name: Get scan outputs (if successful) - name: Get scan outputs (if successful)
assert: assert:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment