Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
agondo69 authored Jan 8, 2025
1 parent 00cd757 commit d5d8f9b
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
dockerimage_scan:
name: CI

on: [push]

jobs:
sast_scan:
name: Run Bandit Scan on app
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Bandit
run: pip install bandit

- name: Run Bandit Scan in current directory
run: bandit -ll -ii -r . -f json -o bandit-report.json

- name: Upload the artifact(s)
uses: actions/upload-artifact@v3
if: always()
with:
name: Bandit vulnerability findings
path: bandit-report.json

dockerimage_scan:
name: Build and Scan Docker Image
runs-on: ubuntu-latest

Expand Down Expand Up @@ -63,3 +94,9 @@ dockerimage_scan:
sudo apt-get update
sudo apt-get install --no-install-recommends -y dnsutils libpq-dev python3-dev
sudo apt-get clean && rm -rf /var/lib/apt/lists/*

0 comments on commit d5d8f9b

Please sign in to comment.