Skip to content

Commit 73bdebe

Browse files
committed
fix: update CI workflows to use latest actions and Python versions
1 parent 843a2ab commit 73bdebe

File tree

3 files changed

+13
-32
lines changed

3 files changed

+13
-32
lines changed

.github/workflows/pycqa.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
steps:
1515
# checkout repository
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
# set up specific python version
19-
- name: Set up Python v3.9
20-
uses: actions/setup-python@v5
19+
- name: Set up Python v3.10
20+
uses: actions/setup-python@v6
2121
with:
22-
python-version: "3.9"
22+
python-version: "3.10"
2323
# tooling
2424
- name: Install 'tooling' dependencies
2525
run: pip install -r package/requirements.tooling.txt
@@ -32,8 +32,8 @@ jobs:
3232
strategy:
3333
fail-fast: true
3434
matrix:
35-
os: [ubuntu-latest, macos-latest, windows-latest]
36-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
35+
os: [ubuntu-latest]
36+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3737
runs-on: ${{ matrix.os }}
3838
steps:
3939
# checkout repository again!

.github/workflows/sast.yaml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,21 @@
11
# Static Application Security Testing
22
name: sast
3+
34
on:
45
workflow_dispatch:
56
push:
67
branches: ["master"]
78
pull_request:
89
branches: ["master"]
9-
schedule:
10-
- cron: "00 00 * * 0"
10+
1111
jobs:
1212
sast:
1313
permissions:
14-
contents: read # for actions/checkout to fetch code
15-
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
16-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
14+
security-events: write
1715
runs-on: ubuntu-latest
1816
steps:
19-
- uses: actions/checkout@v4
2017
- name: Bandit
21-
uses: mdegis/bandit-action@85fcc340c3b0bf5d86029abb49b9aac916d807b2
18+
uses: PyCQA/bandit-action@v1
2219
with:
23-
# exit with 0, even with results found
24-
# exit_zero: true # optional, default is DEFAULT
25-
# Github token of the repository (automatically created by Github)
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information.
27-
# File or directory to run bandit on
28-
path: ./src/validators # optional, default is .
29-
# Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
30-
# level: # optional, default is UNDEFINED
31-
# Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
32-
# confidence: # optional, default is UNDEFINED
33-
# comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) (default: .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg)
34-
excluded_paths: .github,.pytest_cache,.venv,.vscode,site,tests # optional, default is DEFAULT
35-
# comma-separated list of test IDs to skip
36-
# skips: # optional, default is DEFAULT
37-
# path to a .bandit file that supplies command line arguments
38-
# ini_path: # optional, default is DEFAULT
39-
# https://github.com/marketplace/actions/bandit-scan is ISC licensed, by abirismyname
40-
# https://pypi.org/project/bandit/ is Apache v2.0 licensed, by PyCQA
20+
targets: src/validators
21+
exclude: .github,.pytest_cache,.venv,.vscode,site,tests

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pythonPlatform = "All"
121121
typeCheckingMode = "strict"
122122

123123
[tool.pytest.ini_options]
124-
minversion = ".6.0"
124+
minversion = "6.0"
125125
pythonpath = ["src"]
126126
testpaths = "tests"
127127
addopts = ["--doctest-modules"]

0 commit comments

Comments
 (0)