name: test-example-report kind: module description: Test example report with nested parallel steps with mixed types tags: test,parallel,nested help: example_targets: ['example.com', 'httpbin.org'] usage: osmedeus run -m test-example-report -t params: - name: target required: true reports: - name: main-output path: "{{Output}}/sub1.txt" type: text description: Main output file from the workflow - name: http-json path: "{{Output}}/http.json" type: json description: Structured JSON output optional: true - name: markdown-report-report path: "{{Output}}/reports/sample-markdown-report.md" type: markdown description: Markdown report output steps: - name: setup type: bash commands: - mkdir -p {{Output}}/templates/ - 'echo "sub 1: {{target}}" > {{Output}}/sub1.txt' - 'echo "sub 2: {{target}}" > {{Output}}/sub2.txt' # Generate a summary report with just high-severity findings - name: create-sample-repo-template type: bash command: | cat > {{Output}}/templates/sample-markdown-report.md << 'EOF' # Sample Repository Findings - {{TargetSpace}} **Target**: {{Target}} **Date**: {{TaskDate}} ```markdown | ID | Name | Score | | --- | --- | --- | | 1 | Alice | 90 | | 2 | Bob | 85 | | 3 | Charlie | 88 | ``` --- *Report generated by Osmedeus {{Version}}* EOF - name: generate-sample-markdown-report type: function function: 'render_markdown_report("{{Output}}/templates/sample-markdown-report.md", "{{Output}}/reports/sample-markdown-report.md")' # Generate a summary report with just high-severity findings - name: create-sample-repo-template type: bash command: | cat > {{Output}}/reports/sample-markdown-report.html << 'EOF'

Sample Image with JavaScript

Example of <pre> Tag

        Name: Roman
        Course: Web Development
        Code Sample:
            function hello() {
                console.log("Hello, world!");
            }
            

Example of <table> Tag

ID Name Score
1 Alice 90
2 Bob 85
3 Charlie 88

Click the image 👆

EOF - name: store-html-report type: function function: 'store_artifact("{{Output}}/reports/sample-markdown-report.html", "html")' - name: generate-http-json type: bash command: curl -s http://httpbin.org/get > {{Output}}/http.json