diff --git a/tasks/main.yml b/tasks/main.yml index 2c70eb41cee599949fa27f3fd4424b77dbad5165..7a600c75249f0aa1a7e85629a980bfd12c26bbff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -71,20 +71,10 @@ command: python3 /home/gmp/script.py "{{ endpoints_to_scan }}" "{{ paas_ci_workdir + '/dep.json'}}" "{{ paas_ci_workdir }}" register: scan_output - - name: Find reports files in workspace forlder" - find: - paths: "{{ paas_ci_workdir }}" - patterns: "*report.txt" - file_type: "file" - register: report_files - - - debug: - var: report_files - - - name: display all reports + - name: display report ansible.builtin.debug: var=item with_file: - - "{{ report_files }}" + - "{{ paas_ci_workdir + '/report.txt' }}" - name: get Severity file content ansible.builtin.debug: var=item @@ -95,6 +85,9 @@ - name: save the Json data to a Variable as a Fact set_fact: severity_json: "{{ severity | from_json }}" + + - debug: + var: severity_json - name: Get scan outputs (if successful) assert: