mirror of
https://github.com/fsecada01/Pygentic-AI.git
synced 2025-12-25 18:06:44 +00:00
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
|
|
# Bandit is a security linter designed to find common security issues in Python code.
|
|
# This action will run Bandit on your codebase.
|
|
# The results of the scan will be found under the Security tab of your repository.
|
|
|
|
# https://github.com/marketplace/actions/bandit-scan is ISC licensed, by abirismyname
|
|
# https://pypi.org/project/bandit/ is Apache v2.0 licensed, by PyCQA
|
|
|
|
name: Bandit
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ "main", "dev_deploy", "prod_deploy"]
|
|
schedule:
|
|
- cron: '30 19 * * 4'
|
|
|
|
jobs:
|
|
bandit:
|
|
permissions:
|
|
contents: read # for actions/checkout to fetch code
|
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Bandit Check
|
|
uses: jpetrucciani/bandit-check@1.7.4
|
|
with:
|
|
bandit_flags: "-lll"
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
level: high
|
|
confidence: high
|
|
exit_zero: true
|