Skip to content

Commit 3072a0c

Browse files
authored
Merge pull request #1014 from mprpic/pin-github-actions-shas
ci: pin GitHub Actions to full commit SHAs
2 parents 2cf0e7d + 940b112 commit 3072a0c

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/check.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
if: ${{ !startsWith(github.ref, 'refs/tags') }}
1212

1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v6
19+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2020
with:
2121
python-version: "3.12" # minimum supported lang version
2222

@@ -32,12 +32,12 @@ jobs:
3232
if: ${{ !startsWith(github.ref, 'refs/tags') }}
3333

3434
steps:
35-
- uses: actions/checkout@v6
35+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3636
with:
3737
fetch-depth: 0
3838

3939
- name: Set up Python
40-
uses: actions/setup-python@v6
40+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
4141
with:
4242
python-version: "3.12" # minimum supported lang version
4343

@@ -53,12 +53,12 @@ jobs:
5353
if: ${{ !startsWith(github.ref, 'refs/tags') }}
5454

5555
steps:
56-
- uses: actions/checkout@v6
56+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5757
with:
5858
fetch-depth: 0
5959

6060
- name: Set up Python
61-
uses: actions/setup-python@v6
61+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
6262
with:
6363
python-version: "3.12" # minimum supported lang version
6464

.github/workflows/python-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
id-token: write
2020

2121
steps:
22-
- uses: actions/checkout@v6
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2323
# with:
2424
# fetch-depth: 0
2525
- name: Set up Python
26-
uses: actions/setup-python@v6
26+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2727
with:
2828
python-version: '3.12'
2929
- name: Install dependencies
@@ -35,4 +35,4 @@ jobs:
3535
python -m build
3636
- name: Publish distribution to PyPI
3737
if: startsWith(github.ref, 'refs/tags')
38-
uses: pypa/gh-action-pypi-publish@release/v1
38+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1

.github/workflows/test.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525

2626
steps:
2727
- name: Get source
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2929

3030
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v6
31+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434

3535
- name: Set up Rust ${{ matrix.rust-version }}
36-
uses: actions-rs/toolchain@v1
36+
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
3737
with:
3838
toolchain: ${{ matrix.rust-version }}
3939
default: true
@@ -54,7 +54,7 @@ jobs:
5454
run: hatch run test:test --with-network
5555

5656
- name: Upload coverage
57-
uses: actions/upload-artifact@v7
57+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
5858
with:
5959
name: coverage-unit-py${{ matrix.python-version }}-rs${{ matrix.rust-version }}-${{ matrix.os }}
6060
path: .coverage.*
@@ -96,15 +96,15 @@ jobs:
9696

9797
steps:
9898
- name: Get source
99-
uses: actions/checkout@v6
99+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
100100

101101
- name: Set up Python ${{ matrix.python-version }}
102-
uses: actions/setup-python@v6
102+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
103103
with:
104104
python-version: ${{ matrix.python-version }}
105105

106106
- name: Set up Rust ${{ matrix.rust-version }}
107-
uses: actions-rs/toolchain@v1
107+
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
108108
with:
109109
toolchain: ${{ matrix.rust-version }}
110110
default: true
@@ -126,15 +126,15 @@ jobs:
126126

127127
- name: Upload logs for debugging
128128
if: ${{ failure() }}
129-
uses: actions/upload-artifact@v7
129+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
130130
with:
131131
name: ${{ matrix.test-script }}-py${{ matrix.python-version }}-rs${{ matrix.rust-version }}-${{ matrix.os }}
132132
path: |
133133
e2e-output
134134
e2e-failed-*
135135
136136
- name: Upload coverage
137-
uses: actions/upload-artifact@v7
137+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
138138
with:
139139
name: coverage-e2e-${{ matrix.test-script }}-py${{ matrix.python-version }}-rs${{ matrix.rust-version }}-${{ matrix.os }}
140140
path: .coverage.*
@@ -150,12 +150,12 @@ jobs:
150150
- e2e
151151

152152
steps:
153-
- uses: actions/checkout@v6
153+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
154154
with:
155155
fetch-depth: 0
156156

157157
- name: Set up Python
158-
uses: actions/setup-python@v6
158+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
159159
with:
160160
python-version: 3.12
161161
cache: pip
@@ -166,7 +166,7 @@ jobs:
166166
run: python -m pip install hatch 'click!=8.3.0'
167167

168168
- name: Download coverage data
169-
uses: actions/download-artifact@v8
169+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
170170
with:
171171
pattern: coverage-*
172172
merge-multiple: true
@@ -179,7 +179,7 @@ jobs:
179179
hatch run test:coverage report --fail-under=60
180180
181181
- name: Upload report
182-
uses: actions/upload-artifact@v7
182+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
183183
with:
184184
path: htmlcov
185185
name: htmlcov

0 commit comments

Comments
 (0)