Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 40 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
branches:
- main

permissions:
contents: read

jobs:
build:
name: lint
Expand All @@ -16,10 +19,12 @@
- "3.13"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@d0d8abe699bfb85fec6de9f7adb5ae17292296ff # v6

Check warning

Code scanning / zizmor

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc Warning

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
Expand All @@ -28,4 +33,36 @@
run: uv sync --locked --all-extras --dev

- name: Run linter
run: uv run ruff check
run: uv run ruff check
actionlint:
name: actionlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- name: Run actionlint
uses: reviewdog/action-actionlint@50842263c20a7c46bd0065b9e624d3c569db061e # v1

zizmor:
name: zizmor
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@d0d8abe699bfb85fec6de9f7adb5ae17292296ff # v6

Check warning

Code scanning / zizmor

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc Warning

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
- name: Run zizmor
run: uvx zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@4187e74d05793876e9989daffde9c3e66b4acd07 # v3

Check warning

Code scanning / zizmor

action's hash pin has mismatched or missing version comment: points to commit e60ea984bd3b Warning

action's hash pin has mismatched or missing version comment: points to commit e60ea984bd3b
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
sarif_file: results.sarif
category: zizmor
9 changes: 7 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
branches:
- main

permissions:
contents: read

jobs:
build:
name: mypy
Expand All @@ -16,10 +19,12 @@
- "3.13"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@d0d8abe699bfb85fec6de9f7adb5ae17292296ff # v6

Check warning

Code scanning / zizmor

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc Warning

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
branches:
- main

permissions:
contents: read

jobs:
build:
name: unittest
Expand All @@ -15,10 +18,12 @@
- "3.13"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@d0d8abe699bfb85fec6de9f7adb5ae17292296ff # v6

Check warning

Code scanning / zizmor

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc Warning

action's hash pin has mismatched or missing version comment: points to commit d0cc045d04cc
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
Expand Down
Loading