2021-04-06 21:32:01 +01:00
|
|
|
name: Security Analysis
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-07-09 07:21:39 +01:00
|
|
|
- current-release
|
2022-01-06 10:40:52 +00:00
|
|
|
- "*LTS"
|
2021-12-05 22:05:07 +00:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2021-04-06 21:32:01 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
bandit:
|
2021-12-05 22:05:07 +00:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-04-06 21:32:01 +01:00
|
|
|
name: type-check-${{ matrix.config.python-version }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
config:
|
|
|
|
- { python-version: 3.7, tox-env: security}
|
|
|
|
- { python-version: 3.8, tox-env: security}
|
|
|
|
- { python-version: 3.9, tox-env: security}
|
2021-10-28 19:41:57 +01:00
|
|
|
- { python-version: "3.10", tox-env: security}
|
2022-12-17 21:46:22 +00:00
|
|
|
- { python-version: "3.11", tox-env: security}
|
2021-04-06 21:32:01 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout the repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
id: checkout-branch
|
|
|
|
|
|
|
|
- name: Run Linter Checks
|
|
|
|
id: linter-check
|
|
|
|
uses: harshanarayana/custom-actions@main
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.config.python-version }}
|
|
|
|
test-infra-tool: tox
|
|
|
|
test-infra-version: latest
|
|
|
|
action: tests
|
|
|
|
test-additional-args: "-e=${{ matrix.config.tox-env }}"
|