@@ -11,16 +11,16 @@ jobs:
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- python-version : [ '3.11', '3.12', '3.13' ]
14+ python-version : ${{ fromJson(vars.PYTHON_VERSIONS) }}
1515
1616 name : Pyright on ${{ matrix.python-version }}
1717 steps :
18- - uses : actions/checkout@v3
18+ - uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
2121
2222 - name : Set up CPython ${{ matrix.python-version }}
23- uses : actions/setup-python@v4
23+ uses : actions/setup-python@v5
2424 with :
2525 python-version : ${{ matrix.python-version }}
2626
@@ -41,16 +41,16 @@ jobs:
4141 strategy :
4242 fail-fast : false
4343 matrix :
44- python-version : [ '3.11', '3.12', '3.13' ]
44+ python-version : ${{ fromJson(vars.PYTHON_VERSIONS) }}
4545
4646 name : Ruff on ${{ matrix.python-version }}
4747 steps :
48- - uses : actions/checkout@v3
48+ - uses : actions/checkout@v4
4949 with :
5050 fetch-depth : 0
5151
5252 - name : Set up CPython ${{ matrix.python-version }}
53- uses : actions/setup-python@v4
53+ uses : actions/setup-python@v5
5454 with :
5555 python-version : ${{ matrix.python-version }}
5656
6262
6363 - name : Run Ruff Linter
6464 if : ${{ always() && steps.install-deps.outcome == 'success' }}
65- uses : astral-sh/ruff-action@v3
65+ uses : astral-sh/ruff-action@v3
66+
67+ bandit :
68+ runs-on : ubuntu-latest
69+ strategy :
70+ fail-fast : false
71+ matrix :
72+ python-version : ${{ fromJson(vars.PYTHON_VERSIONS) }}
73+
74+ name : Bandit on ${{ matrix.python-version }}
75+ steps :
76+ - uses : actions/checkout@v4
77+ with :
78+ fetch-depth : 0
79+
80+ - name : Set up CPython ${{ matrix.python-version }}
81+ uses : actions/setup-python@v5
82+ with :
83+ python-version : ${{ matrix.python-version }}
84+
85+ - name : Install dependencies
86+ id : install-deps
87+ run : |
88+ pip install .[tests]
89+ pip install bandit
90+
91+ - name : Run Bandit
92+ run : |
93+ bandit -c pyproject.toml -r flogin
94+ bandit -c pyproject.toml -r tests --skip B101
0 commit comments