diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..3295b17 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,71 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/conventional-commits.yml': + - 'actions/create-github-app-token@v3.3.0' + - 'ytanikin/pr-conventional-commits@1.5.2' + '.github/workflows/deploy-mkdocs.yml': + - 'actions/checkout@v7.0.1' + - 'astral-sh/setup-uv@v10.3.3' + '.github/workflows/release.yml': + - 'actions/checkout@v7.0.1' + - 'actions/download-artifact@v8.0.2' + - 'actions/upload-artifact@v7.0.2' + - 'astral-sh/setup-uv@v10.3.3' + - 'pypa/gh-action-pypi-publish@v1.14.3' + '.github/workflows/test.yml': + - 'actions/checkout@v7.0.1' + - 'astral-sh/ruff-action@v4.1.0' + - 'astral-sh/setup-uv@v10.3.3' + '.github/workflows/verify-actions-lock.yml': + - 'actions/checkout@v7.0.1' +dependencies: + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/create-github-app-token@v3.3.0': + ref: 'v3.3.0' + commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510' + owner_id: 44036562 + repo_id: 642580244 + 'actions/download-artifact@v8.0.2': + ref: 'v8.0.2' + commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333' + owner_id: 44036562 + repo_id: 192626254 + 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405': + ref: 'v6.2.0' + commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405' + owner_id: 44036562 + repo_id: 192625525 + 'actions/upload-artifact@v7.0.2': + ref: 'v7.0.2' + commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' + owner_id: 44036562 + repo_id: 192625955 + 'astral-sh/ruff-action@v4.1.0': + ref: 'v4.1.0' + commit: 'sha1-278981a28ce3188b1e39527901f38254bf3aac89' + owner_id: 115962839 + repo_id: 865075538 + 'astral-sh/setup-uv@v10.3.3': + ref: 'v10.3.3' + commit: 'sha1-68559e99cc807c1eb7e9238fd43a15bba460eec2' + owner_id: 115962839 + repo_id: 846733598 + 'pypa/gh-action-pypi-publish@v1.14.3': + ref: 'v1.14.3' + commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086' + owner_id: 647025 + repo_id: 178055147 + uses: + - 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405' + 'ytanikin/pr-conventional-commits@1.5.2': + ref: '1.5.2' + commit: 'sha1-639145d78959c53c43112365837e3abd21ed67c1' + owner_id: 9797137 + repo_id: 646513680 diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index b038281..2366263 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -16,7 +16,7 @@ jobs: permission-pull-requests: write - name: PR Conventional Commit Validation - uses: ytanikin/pr-conventional-commits@639145d78959c53c43112365837e3abd21ed67c1 # 1.5.2 + uses: ytanikin/pr-conventional-commits@1.5.2 with: task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' token: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/deploy-mkdocs.yml b/.github/workflows/deploy-mkdocs.yml index 488cb67..ad1c4c1 100644 --- a/.github/workflows/deploy-mkdocs.yml +++ b/.github/workflows/deploy-mkdocs.yml @@ -21,12 +21,12 @@ jobs: env: CI: "TRUE" steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # We need to additionally fetch the gh-pages branch for mike deploy with: fetch-depth: 0 - - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + - uses: astral-sh/setup-uv@v10.3.3 with: enable-cache: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 043f629..f9a4428 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: Install a specific version of uv - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + uses: astral-sh/setup-uv@v10.3.3 with: version: "latest" @@ -23,7 +23,7 @@ jobs: run: | uv run python -m build - - uses: actions/upload-artifact@v7 + - uses: actions/upload-artifact@v7.0.2 with: path: ./dist/ @@ -39,11 +39,11 @@ jobs: permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@v8.0.2 with: name: artifact path: dist merge-multiple: true - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1 + uses: pypa/gh-action-pypi-publish@v1.14.3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8fe67ae..1df094c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,12 +11,12 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: submodules: "recursive" - name: Install a specific version of uv - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + uses: astral-sh/setup-uv@v10.3.3 with: version: "latest" @@ -25,7 +25,7 @@ jobs: run: uv run --group docs mkdocs build --strict # Use ruff-action so we get annotations in the Github UI - - uses: astral-sh/ruff-action@278981a28ce3188b1e39527901f38254bf3aac89 # v4.1.0 + - uses: astral-sh/ruff-action@v4.1.0 pytest: name: Pytest @@ -34,12 +34,12 @@ jobs: matrix: python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: submodules: "recursive" - name: Install a specific version of uv - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 + uses: astral-sh/setup-uv@v10.3.3 with: version: "latest" diff --git a/.github/workflows/verify-actions-lock.yml b/.github/workflows/verify-actions-lock.yml new file mode 100644 index 0000000..0ca8bf1 --- /dev/null +++ b/.github/workflows/verify-actions-lock.yml @@ -0,0 +1,31 @@ +# Fails when .github/workflows/actions.lock is out of sync with the workflows, +# or a locked pin no longer verifies upstream. Fix locally with `gh actions-lock`. +# See https://github.com/github/gh-actions-lock + +name: Actions lockfile + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + verify: + name: Verify actions lockfile + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} + steps: + - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false + - run: gh extension install github/gh-actions-lock --pin v0.4.1 + - run: gh actions-lock --verify