Skip to content

Commit 309e9d1

Browse files
authored
Pin CI references (#716)
* Pin CI references * Fix codspeed python version
1 parent 1ac3ce8 commit 309e9d1

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

.github/workflows/codspeed.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,14 @@ jobs:
2525
runs-on: ubuntu-latest
2626

2727
steps:
28-
- uses: actions/checkout@v6.0.0
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2929
with:
3030
persist-credentials: false
3131

32-
- uses: actions/setup-python@v6.1.0
33-
with:
34-
python-version: "3.14"
35-
3632
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
3733

3834
- name: Run CodSpeed benchmarks
3935
uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
4036
with:
4137
mode: simulation
42-
run: uv run --with pytest-codspeed --with pytest-benchmark --group test --extra msgspec --extra orjson pytest --codspeed bench/
38+
run: uv run --python 3.14 --with pytest-codspeed --with pytest-benchmark --group test --extra msgspec --extra orjson pytest --codspeed bench/

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121

2222
steps:
23-
- uses: "actions/checkout@v4"
23+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2424
with:
2525
persist-credentials: false
2626

@@ -34,7 +34,7 @@ jobs:
3434
just python=${{ startsWith(matrix.python-version, 'pypy') && matrix.python-version || format('python{0}', matrix.python-version) }} covcleanup="false" cov
3535
3636
- name: Upload coverage data
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
3838
with:
3939
name: coverage-data-${{ matrix.python-version }}
4040
path: .coverage.*
@@ -47,12 +47,12 @@ jobs:
4747
runs-on: "ubuntu-latest"
4848

4949
steps:
50-
- uses: "actions/checkout@v4"
50+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5151
with:
5252
persist-credentials: false
5353

5454
- name: Download coverage data
55-
uses: actions/download-artifact@v4
55+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
5656
with:
5757
pattern: coverage-data-*
5858
merge-multiple: true
@@ -75,7 +75,7 @@ jobs:
7575
uv run --group test coverage report --fail-under=100
7676
7777
- name: "Upload HTML report."
78-
uses: "actions/upload-artifact@v4"
78+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7979
with:
8080
name: "html-report"
8181
path: "htmlcov"
@@ -85,7 +85,7 @@ jobs:
8585
name: "Run linters"
8686
runs-on: "ubuntu-latest"
8787
steps:
88-
- uses: "actions/checkout@v4"
88+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8989
with:
9090
persist-credentials: false
9191

@@ -101,7 +101,7 @@ jobs:
101101
runs-on: "ubuntu-latest"
102102

103103
steps:
104-
- uses: "actions/checkout@v4"
104+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
105105
with:
106106
persist-credentials: false
107107

.github/workflows/pypi-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2222
with:
2323
fetch-depth: 0
2424
persist-credentials: false
2525

26-
- uses: hynek/build-and-inspect-python-package@v2
26+
- uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0
2727

2828
# Upload to Test PyPI on every commit on main.
2929
release-test-pypi:
@@ -37,13 +37,13 @@ jobs:
3737

3838
steps:
3939
- name: Download packages built by build-and-inspect-python-package
40-
uses: actions/download-artifact@v4
40+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
4141
with:
4242
name: Packages
4343
path: dist
4444

4545
- name: Upload package to Test PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
46+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4747
with:
4848
repository-url: https://test.pypi.org/legacy/
4949

@@ -59,10 +59,10 @@ jobs:
5959

6060
steps:
6161
- name: Download packages built by build-and-inspect-python-package
62-
uses: actions/download-artifact@v4
62+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
6363
with:
6464
name: Packages
6565
path: dist
6666

6767
- name: Upload package to PyPI
68-
uses: pypa/gh-action-pypi-publish@release/v1
68+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

.github/workflows/zizmor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2222
with:
2323
persist-credentials: false
2424
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
@@ -27,7 +27,7 @@ jobs:
2727
env:
2828
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Upload SARIF file
30-
uses: github/codeql-action/upload-sarif@v3
30+
uses: github/codeql-action/upload-sarif@f6a16bef8e5c39e398e4da16862d381f76824ac6
3131
with:
3232
# Path to SARIF file relative to the root of the repository
3333
sarif_file: results.sarif

0 commit comments

Comments
 (0)