Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
cabf83e
chore(deps): bump pytest-cov from 6.1.0 to 6.3.0 (#996)
dependabot[bot] Sep 10, 2025
892b93a
chore(deps): bump github/codeql-action from 3.28.13 to 3.30.1 (#995)
dependabot[bot] Sep 10, 2025
f14c3cf
chore(deps): bump twine from 6.1.0 to 6.2.0 (#994)
dependabot[bot] Sep 10, 2025
a80136f
chore(deps): bump actions/setup-python from 5.5.0 to 6.0.0 (#993)
dependabot[bot] Sep 10, 2025
468be5f
chore(deps): update hypothesis requirement from <6.130.9,>=6.21.0 to …
dependabot[bot] Sep 10, 2025
dd8ae59
chore(deps): bump pytest-cases from 3.8.6 to 3.9.1 (#958)
dependabot[bot] Sep 10, 2025
b6881a5
chore(deps): update pre-commit requirement from <4.1.0,>=3.0.0 to >=3…
dependabot[bot] Sep 10, 2025
4bc4285
chore(deps): bump step-security/harden-runner from 2.11.1 to 2.13.0 (…
dependabot[bot] Sep 10, 2025
09d7c75
chore(deps): update mypy requirement from <1.15,>=1.0.0 to >=1.0.0,<1…
dependabot[bot] Sep 10, 2025
c5ccbe4
chore(deps): bump actions/checkout from 4.2.2 to 5.0.0 (#985)
dependabot[bot] Sep 10, 2025
8b97adb
chore(deps): bump slsa-framework/slsa-github-generator from 2.0.0 to …
dependabot[bot] Sep 10, 2025
dfe12f3
chore(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.2 (#942)
dependabot[bot] Sep 10, 2025
dd8777a
chore(deps): bump faker from 37.1.0 to 37.6.0 (#990)
dependabot[bot] Sep 10, 2025
2d4284e
chore(deps): bump actions/upload-artifact from 4.5.0 to 4.6.2 (#914)
dependabot[bot] Sep 10, 2025
a37762b
chore(deps): bump actions/download-artifact from 4.1.8 to 5.0.0 (#984)
dependabot[bot] Sep 10, 2025
b051cfe
chore(deps): bump pytest-doctestplus from 1.3.0 to 1.4.0 (#909)
dependabot[bot] Sep 10, 2025
5a964f1
chore(deps): bump commitizen from 4.5.0 to 4.8.4 (#997)
dependabot[bot] Sep 10, 2025
6bfad98
fix: make sure isort skips over files listed as such in the pyproject…
jenstroeger Sep 10, 2025
b7250ac
fix: building the package’s dist files should *always* generate the b…
jenstroeger Sep 10, 2025
63c2bd0
fix: remove various repo files that leaked into the sdist of the pack…
jenstroeger Sep 10, 2025
ff72c39
chore: add macOS .DS_Store system files and vim .swp files to the .gi…
jenstroeger Sep 10, 2025
761f687
feat(ci): cancel existing running workflows for a PR when a new chang…
jenstroeger Sep 10, 2025
7c137a4
chore(deps): bump github/codeql-action from 3.30.1 to 3.30.3 (#1003)
dependabot[bot] Sep 15, 2025
c8fa9d6
chore(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1 (…
dependabot[bot] Sep 15, 2025
67c08dd
chore(deps): bump pytest-cov from 6.3.0 to 7.0.0 (#1000)
dependabot[bot] Sep 15, 2025
38b7bc1
chore(deps): update mypy requirement from <1.18,>=1.0.0 to >=1.0.0,<1…
dependabot[bot] Sep 15, 2025
6816936
chore(deps): update hypothesis requirement from <6.138.16,>=6.21.0 to…
dependabot[bot] Sep 15, 2025
46d6167
perf(test): use Python’s system monitoring facilities to improve perf…
jenstroeger Sep 20, 2025
4a58790
build: use head_commit object for checking the bump message (#988)
behnazh Sep 20, 2025
7bd4bc4
feat: add actions to CodeQL languages (#991)
behnazh Sep 20, 2025
2da2306
ci: remove path exclusion for CodeQL Action runs (#1004)
behnazh Sep 20, 2025
baf2c80
chore(deps): bump commitizen from 4.8.4 to 4.9.1 (#1002)
dependabot[bot] Sep 20, 2025
064fb57
chore(deps-dev): update pre-commit tools (#949)
jenstroeger Sep 20, 2025
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
1 change: 1 addition & 0 deletions .github/codeql/codeql-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: CodeQL configuration
paths:
- src/package
- .github/workflows
8 changes: 4 additions & 4 deletions .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
# Currently reusable workflows do not support setting strategy property from the caller workflow.
- name: Upload the package artifact for debugging and release
if: matrix.os == env.ARTIFACT_OS && matrix.python == env.ARTIFACT_PYTHON
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: artifact-${{ matrix.os }}-python-${{ matrix.python }}
path: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_generate-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
token: ${{ secrets.REPO_ACCESS_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_wiki-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

# Check out the repository's Wiki repo into the wiki/ folder. The token is required
# only for private repositories.
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ format('{0}.wiki', github.repository) }}
path: wiki

# Download the build artifacts attached to this workflow run.
- name: Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: ${{ inputs.artifact-name }}
path: dist
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
branches:
- release
- main
# Avoid unnecessary scans of pull requests.
paths:
- '**/*.py'
schedule:
- cron: 20 15 * * 3
permissions:
Expand All @@ -30,23 +27,22 @@ jobs:
strategy:
fail-fast: false
matrix:
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
language: [python]
language: [python, actions]
python: ['3.13']
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python }}

Expand All @@ -58,7 +54,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
with:
languages: ${{ matrix.language }}
config-file: .github/codeql/codeql-config.yaml
Expand All @@ -71,4 +67,4 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
6 changes: 6 additions & 0 deletions .github/workflows/pr-change-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
permissions:
contents: read

# Cancel existing running workflows for a PR when a new change is pushed
# to that PR. See also: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
uses: ./.github/workflows/_build.yaml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-conventional-commits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
steps:

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.13'

Expand All @@ -36,7 +36,7 @@
- name: Set up Commitizen
run: |
pip install --upgrade pip wheel
pip install 'commitizen ==4.5.0'
pip install 'commitizen ==4.9.1'

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: pipCommand not pinned by hash
Click Remediation section below to solve this issue

# Run Commitizen to check the title of the PR which triggered this workflow, and check
# all commit messages of the PR's branch. If any of the checks fails then this job fails.
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

jobs:
check:
if: ${{ !startsWith(github.event.commits[0].message, 'bump:') }}
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
uses: ./.github/workflows/_build.yaml
permissions:
contents: read
Expand All @@ -30,26 +30,26 @@
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
token: ${{ secrets.REPO_ACCESS_TOKEN }}

- name: Set up Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.13'

- name: Set up Commitizen
run: |
pip install --upgrade pip wheel
pip install 'commitizen ==4.5.0'
pip install 'commitizen ==4.9.1'

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: pipCommand not pinned by hash
Click Remediation section below to solve this issue

- name: Set up user
run: |
Expand Down Expand Up @@ -77,7 +77,7 @@

# When triggered by the version bump commit, build the package and publish the release artifacts.
build:
if: github.ref == 'refs/heads/release' && startsWith(github.event.commits[0].message, 'bump:')
if: github.ref == 'refs/heads/release' && startsWith(github.event.head_commit.message, 'bump:')
uses: ./.github/workflows/_build.yaml
permissions:
contents: read
Expand All @@ -98,18 +98,18 @@
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0

- name: Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: artifact-ubuntu-latest-python-3.13
path: dist
Expand All @@ -126,14 +126,14 @@

# Create the Release Notes using commitizen.
- name: Set up Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.13'

- name: Set up Commitizen
run: |
pip install --upgrade pip wheel
pip install 'commitizen ==4.5.0'
pip install 'commitizen ==4.9.1'

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: pipCommand not pinned by hash
Click Remediation section below to solve this issue

- name: Create Release Notes
run: cz changelog --dry-run "$(cz version --project)" > RELEASE_NOTES.md
Expand Down Expand Up @@ -177,7 +177,7 @@
# https://github.com/slsa-framework/slsa-github-generator/issues/942
provenance:
needs: [build, release]
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
with:
base64-subjects: ${{ needs.build.outputs.artifacts-sha256 }}
compile-generator: false # Do not build the provenance generator from source anymore.
Expand All @@ -199,18 +199,18 @@
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0

- name: Download provenance
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: ${{ needs.provenance.outputs.provenance-name }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/scorecards-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
disable-sudo: true

- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Run analysis
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -52,13 +52,13 @@ jobs:

# Upload the results as artifacts (optional).
- name: Upload artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: SARIF file
path: results.sarif

# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
with:
sarif_file: results.sarif
4 changes: 2 additions & 2 deletions .github/workflows/sync-with-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:

- name: Check out template repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
# If you decide to change the upstream template repository to a private one, uncomment
# the following argument to pass the required token to be able to check it out.
Expand All @@ -31,7 +31,7 @@ jobs:
path: template

- name: Check out current repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
fetch-depth: 0
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,9 @@ dmypy.json

# Pyre type checker
.pyre/

# macOS cruft
.DS_Store

# vim swap files
.*.swp
Loading
Loading