diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5c5631448..2e4b9645c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,3 +8,5 @@ updates: actions: patterns: - "*" + cooldown: + default-days: 7 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 911dc69b2..cb561fb94 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,10 +9,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - uses: actions/setup-python@v6 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: "3.x" - - uses: tox-dev/action-pre-commit-uv@v1 + - uses: tox-dev/action-pre-commit-uv@41a04ab74d5ec7ca33c8db8a59b6e3291d576033 # v1.0.4 diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-lint-and-build.yml index 6a05db51d..efa6cd520 100644 --- a/.github/workflows/update-lint-and-build.yml +++ b/.github/workflows/update-lint-and-build.yml @@ -16,10 +16,10 @@ jobs: matrix: version: [3.15, 3.14, 3.13, 3.12, 3.11, '3.10'] steps: - - uses: styfle/cancel-workflow-action@0.13.1 + - uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1 with: access_token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-python@v6 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: 3 - name: Install dependencies @@ -28,7 +28,7 @@ jobs: pip install requests cogapp polib transifex-python sphinx-intl blurb six curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash working-directory: /usr/local/bin - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ matrix.version }} fetch-depth: 0 @@ -59,7 +59,7 @@ jobs: - run: git commit -m "$(python manage_translation.py generate_commit_msg)" if: env.SIGNIFICANT_CHANGES - name: Push commit - uses: ad-m/github-push-action@v1.1.0 + uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0 if: env.SIGNIFICANT_CHANGES with: branch: ${{ matrix.version }} @@ -74,14 +74,14 @@ jobs: needs: ['update'] continue-on-error: true steps: - - uses: actions/setup-python@v6 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: 3 - run: pip install sphinx-lint - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ matrix.version }} - - uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0 + - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 - run: sphinx-lint build: @@ -93,16 +93,16 @@ jobs: format: [html, latex, epub] needs: ['update'] steps: - - uses: actions/setup-python@v6 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63) - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: repository: python/cpython ref: ${{ matrix.version }} - run: make venv working-directory: ./Doc - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ matrix.version }} path: Doc/locales/pl/LC_MESSAGES @@ -110,10 +110,10 @@ jobs: working-directory: ./Doc/locales/pl/LC_MESSAGES - run: sudo apt-get update && sudo apt-get install -y librsvg2-bin if: ${{ matrix.format == 'latex' && fromJSON(matrix.version) >= 3.14 }} - - uses: sphinx-doc/github-problem-matcher@v1.1 + - uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1 - run: make -e SPHINXOPTS="--color -D language='pl' -W --keep-going" ${{ matrix.format }} working-directory: ./Doc - - uses: actions/upload-artifact@v7.0.1 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: success() || failure() with: name: build-${{ matrix.version }}-${{ matrix.format }} @@ -126,13 +126,13 @@ jobs: version: [3.15, 3.14, 3.13, 3.12, 3.11, '3.10'] needs: ['build'] steps: - - uses: actions/download-artifact@v8.0.1 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: build-${{ matrix.version }}-latex - run: sudo apt-get update - run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy - run: make - - uses: actions/upload-artifact@v7.0.1 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: build-${{ matrix.version }}-pdf path: . @@ -145,11 +145,11 @@ jobs: needs: ['build'] continue-on-error: true steps: - - uses: actions/setup-python@v6 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: 3.x - - uses: astral-sh/setup-uv@v7 - - uses: actions/download-artifact@v8.0.1 + - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: build-${{ matrix.version }}-epub - run: uvx epubcheck diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d15ef093e..bd1ceb0e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: 0c7b6c989466a93942def1f84baf36ddfcd60c83 # frozen: v0.15.14 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v6.0.0 + rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -20,12 +20,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.1 + rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2 hooks: - id: check-github-workflows - repo: https://github.com/rhysd/actionlint - rev: v1.7.12 + rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12 hooks: - id: actionlint