Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Notradame authored Jun 8, 2024
1 parent 5ec3a3e commit 40131d0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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 .

- name: Upload CSV Output
uses: actions/upload-artifact@v2
with:
name: compliance csv
path: compliance_report.csv





0 comments on commit 40131d0

Please sign in to comment.