chore: merge pull request #41 from ebouchut/patch-1 #12
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: Security | |
on: | |
workflow_dispatch: | |
push: | |
env: | |
PYTHON_VERSION: '3.12' | |
jobs: | |
bandit: | |
name: Bandit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Poetry | |
run: | | |
pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: poetry | |
- name: Set up Poetry environment | |
env: | |
PYTHON_VERSION: ${{ env.PYTHON_VERSION }} | |
run: | | |
poetry env use ${PYTHON_VERSION} | |
- name: Install Python dependencies | |
run: | | |
pip install poetry | |
make install | |
- name: Run Bandit | |
run: | | |
poetry run bandit -r mkdocs_exporter |