Skip to content
Myr

🔒 Pin GitHub actions by commit SHA (#1666)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Motov Yurii · committed by GitHub · parent 8d97df3 · Browse files · 14 files+52 added−52 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

14 files+52 added−52 removed

  • other:+52 added−52 removed

14 files+52 added−52 removed

modified:.github/workflows/add-to-project.yml+1 added-1 removed
modified:.github/workflows/build-docs.yml+8 added-8 removed
modified:.github/workflows/conflict.yml+1 added-1 removed
modified:.github/workflows/deploy-docs.yml+5 added-5 removed
18 unmodified lines
19 - name: Dump GitHub context20 env:21 GITHUB_CONTEXT: ${{ toJson(github) }}22 run: echo "$GITHUB_CONTEXT"23 - uses: actions/checkout@v623 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.224 - name: Set up Python25 uses: actions/setup-python@v625 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.026 with:27 python-version-file: ".python-version"28 - name: Setup uv29 uses: astral-sh/setup-uv@v729 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.030 with:31 enable-cache: true32 cache-dependency-glob: |33 pyproject.toml
10 unmodified lines
44 - name: Clean site45 run: |46 rm -rf ./site47 mkdir ./site48 - uses: actions/download-artifact@v848 - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.149 with:50 path: ./site/51 pattern: docs-site52 merge-multiple: true
5 unmodified lines
58 id: deploy59 env:60 PROJECT_NAME: typertiangolo61 BRANCH: ${{ ( github.event.workflow_run.head_repository.full_name == github.repository && github.event.workflow_run.head_branch == 'master' && 'main' ) || ( github.event.workflow_run.head_sha ) }}62 uses: cloudflare/wrangler-action@v362 uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.163 with:64 apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}65 accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}66 command: pages deploy ./site --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.BRANCH }}
16 unmodified lines
modified:.github/workflows/issue-manager.yml+1 added-1 removed
modified:.github/workflows/labeler.yml+2 added-2 removed
14 unmodified lines
15 contents: read16 pull-requests: write17 runs-on: ubuntu-latest18 steps:19 - uses: actions/labeler@v619 - uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.120 if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}21 - run: echo "Done adding labels"22 # Run this after labeler applied labels23 check-labels:
2 unmodified lines
26 permissions:27 pull-requests: read28 runs-on: ubuntu-latest29 steps:30 - uses: docker://agilepathway/pull-request-label-checker:latest30 - uses: agilepathway/label-checker@c3d16ad512e7cea5961df85ff2486bb774caf3c5 # v1.6.6531 with:32 one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal33 repo_token: ${{ secrets.GITHUB_TOKEN }}
modified:.github/workflows/latest-changes.yml+3 added-3 removed
22 unmodified lines
23 - name: Dump GitHub context24 env:25 GITHUB_CONTEXT: ${{ toJson(github) }}26 run: echo "$GITHUB_CONTEXT"27 - uses: actions/checkout@v627 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.228 with:29 # To allow latest-changes to commit to the main branch30 token: ${{ secrets.TYPER_LATEST_CHANGES }}31 # Allow debugging with tmate32 - name: Setup tmate session33 uses: mxschmitt/action-tmate@v333 uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.2334 if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}35 with:36 limit-access-to-actor: true37 - uses: tiangolo/latest-changes@0.4.137 - uses: tiangolo/latest-changes@c9d329cb147f0ddf4fb631214e3f838ff17ccbbd # 0.4.138 with:39 token: ${{ secrets.GITHUB_TOKEN }}40 latest_changes_file: docs/release-notes.md41 latest_changes_header: '## Latest Changes'
3 unmodified lines
modified:.github/workflows/pre-commit.yml+6 added-6 removed
16 unmodified lines
17 - name: Dump GitHub context18 env:19 GITHUB_CONTEXT: ${{ toJson(github) }}20 run: echo "$GITHUB_CONTEXT"21 - uses: actions/checkout@v621 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.222 name: Checkout PR for own repo23 if: env.HAS_SECRETS == 'true'24 with:25 # To be able to commit it needs to fetch the head of the branch, not the
3 unmodified lines
29 fetch-depth: 030 # A token other than the default GITHUB_TOKEN is needed to be able to trigger CI31 token: ${{ secrets.PRE_COMMIT }}32 # pre-commit lite ci needs the default checkout configs to work33 - uses: actions/checkout@v633 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.234 name: Checkout PR for fork35 if: env.HAS_SECRETS == 'false'36 with:37 # To be able to commit it needs the head branch of the PR, the remote one38 ref: ${{ github.event.pull_request.head.sha }}39 fetch-depth: 040 - name: Set up Python41 uses: actions/setup-python@v641 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.042 with:43 python-version-file: ".python-version"44 - name: Setup uv45 uses: astral-sh/setup-uv@v745 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.046 with:47 cache-dependency-glob: |48 pyproject.toml49 uv.lock
14 unmodified lines
64 else65 git commit -m "🎨 Auto format"66 git push67 fi68 - uses: pre-commit-ci/lite-action@v1.1.068 - uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.069 if: env.HAS_SECRETS == 'false'70 with:71 msg: 🎨 Auto format72 - name: Error out on pre-commit errors
11 unmodified lines
84 env:85 GITHUB_CONTEXT: ${{ toJson(github) }}86 run: echo "$GITHUB_CONTEXT"87 - name: Decide whether the needed jobs succeeded or failed88 uses: re-actors/alls-green@release/v188 uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.289 with:90 jobs: ${{ toJSON(needs) }}
modified:.github/workflows/publish.yml+3 added-3 removed
14 unmodified lines
15 - name: Dump GitHub context16 env:17 GITHUB_CONTEXT: ${{ toJson(github) }}18 run: echo "$GITHUB_CONTEXT"19 - uses: actions/checkout@v619 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.220 - name: Set up Python21 uses: actions/setup-python@v621 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.022 with:23 python-version-file: ".python-version"24 - name: Install uv25 uses: astral-sh/setup-uv@v725 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.026 - name: Build distribution27 run: uv build28 - name: Publish29 run: uv publish
modified:.github/workflows/smokeshow.yml+4 added-4 removed
16 unmodified lines
17 - name: Dump GitHub context18 env:19 GITHUB_CONTEXT: ${{ toJson(github) }}20 run: echo "$GITHUB_CONTEXT"21 - uses: actions/checkout@v622 - uses: actions/setup-python@v621 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.222 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.023 with:24 python-version-file: ".python-version"25 - name: Setup uv26 uses: astral-sh/setup-uv@v726 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.027 with:28 cache-dependency-glob: |29 pyproject.toml30 uv.lock31 - run: uv sync --locked --no-dev --group github-actions32 - uses: actions/download-artifact@v832 - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.133 with:34 name: coverage-html35 path: htmlcov36 github-token: ${{ secrets.GITHUB_TOKEN }}
9 unmodified lines
modified:.github/workflows/test-cpython-nightly.yml+4 added-4 removed
11 unmodified lines
12 test-latest-python:13 runs-on: ubuntu-latest14 continue-on-error: true15 steps:16 - uses: actions/checkout@v616 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.217 - name: Checkout CPython main18 uses: actions/checkout@v618 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.219 with:20 repository: python/cpython21 ref: main22 path: ./.cpython
3 unmodified lines
26 run: |27 cd ./.cpython28 ./configure && make -j $(nproc)29 - name: Setup uv30 uses: astral-sh/setup-uv@v730 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.031 with:32 enable-cache: true33 cache-dependency-glob: |34 pyproject.toml
9 unmodified lines
44 env:45 COVERAGE_FILE: coverage/.coverage.ubuntu-cpython-main46 CONTEXT: ubuntu-cpython-main47 - name: Store coverage files48 uses: actions/upload-artifact@v748 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.049 with:50 name: coverage-ubuntu-cpython-main51 path: coverage52 include-hidden-files: true
modified:.github/workflows/test-redistribute.yml+3 added-3 removed
15 unmodified lines
16 - name: Dump GitHub context17 env:18 GITHUB_CONTEXT: ${{ toJson(github) }}19 run: echo "$GITHUB_CONTEXT"20 - uses: actions/checkout@v620 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.221 - name: Set up Python22 uses: actions/setup-python@v622 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.023 with:24 python-version-file: ".python-version"25 # Issue ref: https://github.com/actions/setup-python/issues/43626 # cache: "pip"
26 unmodified lines
53 - test-redistribute54 runs-on: ubuntu-latest55 steps:56 - name: Decide whether the needed jobs succeeded or failed57 uses: re-actors/alls-green@release/v157 uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.258 with:59 jobs: ${{ toJSON(needs) }}
modified:.github/workflows/test.yml+10 added-10 removed
44 unmodified lines
45 - name: Dump GitHub context46 env:47 GITHUB_CONTEXT: ${{ toJson(github) }}48 run: echo "$GITHUB_CONTEXT"49 - uses: actions/checkout@v649 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.250 - name: Set up Python51 uses: actions/setup-python@v651 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.052 with:53 python-version: ${{ matrix.python-version }}54 - name: Setup uv55 uses: astral-sh/setup-uv@v755 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.056 with:57 enable-cache: true58 cache-dependency-glob: |59 pyproject.toml
7 unmodified lines
67 env:68 COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}69 CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}70 - name: Store coverage files71 uses: actions/upload-artifact@v771 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.072 with:73 name: coverage-${{ runner.os }}-${{ matrix.python-version }}74 path: coverage75 include-hidden-files: true
5 unmodified lines
81 - name: Dump GitHub context82 env:83 GITHUB_CONTEXT: ${{ toJson(github) }}84 run: echo "$GITHUB_CONTEXT"85 - uses: actions/checkout@v686 - uses: actions/setup-python@v685 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.286 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.087 with:88 python-version-file: ".python-version"89 - name: Setup uv90 uses: astral-sh/setup-uv@v790 uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.091 with:92 enable-cache: true93 cache-dependency-glob: |94 pyproject.toml95 uv.lock96 - name: Get coverage files97 uses: actions/download-artifact@v897 uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.198 with:99 pattern: coverage-*100 path: coverage101 merge-multiple: true
2 unmodified lines
104 - run: ls -la coverage105 - run: uv run coverage combine coverage106 - run: uv run coverage html --show-contexts --title "Coverage for ${{ github.sha }}"107 - name: Store coverage HTML108 uses: actions/upload-artifact@v7108 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0109 with:110 name: coverage-html111 path: htmlcov112 include-hidden-files: true
10 unmodified lines
123 env:124 GITHUB_CONTEXT: ${{ toJson(github) }}125 run: echo "$GITHUB_CONTEXT"126 - name: Decide whether the needed jobs succeeded or failed127 uses: re-actors/alls-green@release/v1127 uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2128 with:129 jobs: ${{ toJSON(needs) }}
modified:.pre-commit-config.yaml+1 added-1 removed
1# See https://pre-commit.com for more information2# See https://pre-commit.com/hooks.html for more hooks3repos:4- repo: https://github.com/pre-commit/pre-commit-hooks5 rev: v6.0.05 rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.06 hooks:7 - id: check-added-large-files8 - id: check-toml9 - id: check-yaml
48 unmodified lines