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')