Skip to content

Commit a6387ab

Browse files
Merge pull request #129 from nextmv-io/merschformann/pin-actions
Pin GitHub Actions to commit SHAs
2 parents ea85ba9 + ad8d2b3 commit a6387ab

8 files changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/auto-benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: git clone
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- name: set up Go
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2424
with:
2525
go-version: ${{ env.GO_VERSION }}
2626

2727
- name: set up Python ${{ env.PYTHON_VERSION }}
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2929
with:
3030
python-version: ${{ env.PYTHON_VERSION }}
3131

.github/workflows/go-test-lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: git clone
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
- name: set up go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2222
with:
2323
go-version: ${{ env.GO_VERSION }}
2424
- name: golangci-lint
25-
uses: golangci/golangci-lint-action@v9
25+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
2626
with:
2727
version: v2.9.0
2828
# Job for running tests
2929
go-test:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: git clone
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
- name: set up go
35-
uses: actions/setup-go@v5
35+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
- name: go test (exclude golden file tests from Python package)

.github/workflows/header.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
language: ["go", "python"]
1515
steps:
1616
- name: git clone
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: set up Python
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2121
with:
2222
python-version: "3.12"
2323

.github/workflows/json-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: git clone
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414

1515
- name: set up node
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1717
with:
1818
node-version: 18.8
1919

.github/workflows/markdown-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: git clone
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414

15-
- uses: DavidAnson/markdownlint-cli2-action@v7
15+
- uses: DavidAnson/markdownlint-cli2-action@6b51ade7a9e4a75a7ad929842dd298a3804ebe8b # v23.1.0
1616
with:
1717
globs: "**/*.md"

.github/workflows/python-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: git clone
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414

1515
- name: set up Python
16-
uses: actions/setup-python@v5
16+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1717
with:
1818
python-version: 3.13
1919

.github/workflows/python-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
]
2828
steps:
2929
- name: git clone
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131

3232
- name: set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v5
33+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3434
with:
3535
python-version: ${{ matrix.python-version }}
3636

@@ -49,7 +49,7 @@ jobs:
4949
# Source:https://github.com/nextmv-io/nextroute/actions/runs/11414952328/job/31764458969?pr=65
5050
- name: set up Go
5151
if: ${{ matrix.platform != 'windows-latest' }}
52-
uses: actions/setup-go@v5
52+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
5353
with:
5454
go-version: ${{ env.GO_VERSION }}
5555

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ jobs:
5353
fi
5454
5555
- name: set up Python
56-
uses: actions/setup-python@v5
56+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5757
with:
5858
python-version: ${{ env.PYTHON_VERSION }}
5959

6060
- name: set up go
61-
uses: actions/setup-go@v5
61+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
6262
with:
6363
go-version: ${{ env.GO_VERSION }}
6464

@@ -131,7 +131,7 @@ jobs:
131131
needs: bump-version
132132
runs-on: ubuntu-latest
133133
steps:
134-
- uses: actions/checkout@v4
134+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
135135
with:
136136
ref: ${{ github.ref_name }}
137137

@@ -141,7 +141,7 @@ jobs:
141141
- name: Check metadata
142142
run: pipx run twine check dist/*
143143

144-
- uses: actions/upload-artifact@v4
144+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
145145
with:
146146
name: wheels-artifacts-sdist
147147
path: dist/*.tar.gz
@@ -167,29 +167,29 @@ jobs:
167167

168168
steps:
169169
- name: git clone ${{ github.ref_name }}
170-
uses: actions/checkout@v4
170+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
171171
with:
172172
ref: ${{ github.ref_name }}
173173

174174
- name: set up Python
175-
uses: actions/setup-python@v5
175+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
176176
with:
177177
python-version: ${{ env.PYTHON_VERSION }}
178178

179179
- name: set up go
180-
uses: actions/setup-go@v5
180+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
181181
with:
182182
go-version: ${{ env.GO_VERSION }}
183183

184184
- name: Build wheels
185185
if: matrix.platform != 'macos-arm64'
186-
uses: pypa/cibuildwheel@v2.21.3
186+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
187187
env:
188188
MACOSX_DEPLOYMENT_TARGET: 13.0
189189

190190
- name: Build wheels
191191
if: matrix.platform == 'macos-arm64'
192-
uses: pypa/cibuildwheel@v2.21.3
192+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
193193
env:
194194
# TODO: default wheel repair does not recognize the arm64 wheel.
195195
# This seems like a bug in delocate-wheel, which is the tool used by cibuildwheel,
@@ -203,7 +203,7 @@ jobs:
203203
shell: bash
204204

205205
- name: Upload wheels
206-
uses: actions/upload-artifact@v4
206+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
207207
with:
208208
name: wheels-artifacts-${{ matrix.platform }}
209209
path: wheelhouse/*.whl
@@ -225,25 +225,25 @@ jobs:
225225
contents: read
226226
id-token: write # This is required for trusted publishing to PyPI
227227
steps:
228-
- uses: actions/download-artifact@v4
228+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
229229
with:
230230
merge-multiple: true
231231
path: dist
232232

233233
- name: Print directory tree for reference
234-
uses: jaywcjlove/github-action-folder-tree@main
234+
uses: jaywcjlove/github-action-folder-tree@e0a53e98a23389b0019777ed2eb9e66e88817b2b # v1.3.0
235235
with:
236236
path: ./
237237

238238
- name: Publish package distributions to PyPI
239239
if: ${{ matrix.target-env == 'pypi' }}
240-
uses: pypa/gh-action-pypi-publish@release/v1
240+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
241241
with:
242242
packages-dir: ./dist
243243

244244
- name: Publish package distributions to TestPyPI
245245
if: ${{ matrix.target-env == 'testpypi' }}
246-
uses: pypa/gh-action-pypi-publish@release/v1
246+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
247247
with:
248248
repository-url: https://test.pypi.org/legacy/
249249
packages-dir: ./dist

0 commit comments

Comments
 (0)