Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit b4d719f

Browse files
authored
Add bandit to the CI pipeline (#619)
Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent 1eef816 commit b4d719f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/security.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,22 @@ jobs:
2828
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
2929
TRIVY_USERNAME: ${{ github.actor }}
3030
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
31+
32+
bandit:
33+
runs-on: ubuntu-latest
34+
name: Bandit
35+
steps:
36+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
37+
- name: Set up Python
38+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
39+
with:
40+
python-version: "3.12"
41+
42+
- name: Install dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install bandit
46+
47+
- name: Run bandit
48+
run: |
49+
bandit -r ./src/codegate

0 commit comments

Comments
 (0)