Bandit Analysis #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bandit Analysis | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' # Run daily at midnight | |
- cron: '0 * * * *' # Run every hour | |
jobs: | |
run_bandit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Bandit | |
run: pip install requests pandas bandit | |
- name: Run Bandit | |
run: python compliance_check.py https://github.com/Notradame/AutoSDLC/ | |
- name: Upload CSV Output | |
uses: actions/upload-artifact@v2 | |
with: | |
name: compliance csv | |
path: compliance_report.csv | |