From 8f62093ad55e0a5dff0bee17e6831c8879042e40 Mon Sep 17 00:00:00 2001 From: rilesdun Date: Sun, 17 Sep 2023 23:50:02 +0000 Subject: [PATCH] update to index.html --- .github/workflows/bandit-scan.yml | 2 +- json_to_html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bandit-scan.yml b/.github/workflows/bandit-scan.yml index 1339203..cd31e39 100644 --- a/.github/workflows/bandit-scan.yml +++ b/.github/workflows/bandit-scan.yml @@ -36,7 +36,7 @@ jobs: - name: Run Bandit and generate report run: | bandit -r src/ -f json -o bandit-security-report/bandit-report.json - python json_to_html.py bandit-security-report/bandit-report.json > bandit-security-report/bandit-report.html + python json_to_html.py bandit-security-report/bandit-report.json > bandit-security-report/index.html - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 diff --git a/json_to_html.py b/json_to_html.py index b3308d8..f68d32e 100644 --- a/json_to_html.py +++ b/json_to_html.py @@ -54,4 +54,4 @@ def json_to_html(input_file, output_file): f.write(html_content) if __name__ == "__main__": - json_to_html('bandit-security-report/bandit-report.json', 'bandit-security-report/bandit-report.html') + json_to_html('bandit-security-report/bandit-report.json', 'bandit-security-report/index.html')