Skip to content

Commit d7f0be1

Browse files
committed
CI: Pin github actions to full length SHA
1 parent d80c83d commit d7f0be1

File tree

6 files changed

+82
-82
lines changed

6 files changed

+82
-82
lines changed

.github/workflows/bench.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
name: Criterion benchmark
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/[email protected]
15-
- uses: boa-dev/[email protected]
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
- uses: boa-dev/criterion-compare-action@adfd3a94634fe2041ce5613eb7df09d247555b87 # v3.2.4
1616
with:
1717
branchName: ${{ github.base_ref }}
1818
benchName: "bench_archive"

.github/workflows/mla_release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,20 @@ jobs:
6767
runs-on: ${{ matrix.os }}
6868

6969
steps:
70-
- uses: actions/[email protected]
71-
- uses: actions-rs/toolchain@v1
70+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
71+
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.6
7272
with:
7373
toolchain: stable
7474
target: ${{ matrix.target }}
75-
- uses: microsoft/setup-msbuild@v1.0.2
75+
- uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
7676
if: matrix.msvc_platform
7777
- name: Build static library
78-
uses: actions-rs/cargo@v1
78+
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # v1.0.1
7979
with:
8080
command: build
8181
args: ${{ matrix.cargo_arg }} --manifest-path=bindings/C/Cargo.toml --target=${{ matrix.target }}
8282
- name: Upload resulting 'mla'
83-
uses: actions/upload-artifact@v4.4.3
83+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
8484
with:
8585
name: mla-${{ matrix.build }}
8686
path: ${{ matrix.path }}
@@ -98,15 +98,15 @@ jobs:
9898
echo "using version tag ${GITHUB_REF:15}"
9999
echo "version=${GITHUB_REF:15}" >> $GITHUB_OUTPUT
100100
- name: Checkout code
101-
uses: actions/[email protected]
101+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102102
- name: Get Changelog Entry
103103
id: changelog_reader
104-
uses: mindsers/changelog-reader-action@v2
104+
uses: mindsers/changelog-reader-action@32aa5b4c155d76c94e4ec883a223c947b2f02656 # v2.2.3
105105
with:
106106
path: ./mla/CHANGELOG.md
107107
- name: Create Release
108108
id: create_release
109-
uses: actions/[email protected]
109+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
110110
env:
111111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112
with:
@@ -116,32 +116,32 @@ jobs:
116116
draft: true
117117

118118
- name: Download linux-x86_64 artifact
119-
uses: actions/[email protected]
119+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
120120
with:
121121
name: mla-linux-x86_64
122122

123123
- name: Download windows-i686 artifact
124-
uses: actions/[email protected]
124+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
125125
with:
126126
name: mla-windows-i686
127127

128128
- name: Download windows-x86_64 artifact
129-
uses: actions/[email protected]
129+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
130130
with:
131131
name: mla-windows-x86_64
132132

133133
- name: Download windows-i686-debug artifact
134-
uses: actions/[email protected]
134+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
135135
with:
136136
name: mla-windows-i686-debug
137137

138138
- name: Download windows-x86_64-debug artifact
139-
uses: actions/[email protected]
139+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
140140
with:
141141
name: mla-windows-x86_64-debug
142142

143143
- name: Release Linux artifact
144-
uses: actions/[email protected]
144+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
145145
env:
146146
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147147
with:
@@ -158,7 +158,7 @@ jobs:
158158
zip --junk-paths windows-x86_64-debug mla-windows-x86_64-debug/mla.dll mla-windows-x86_64-debug/mla.lib mla-windows-x86_64-debug/mla.dll.lib mla-windows-x86_64-debug/mla.pdb
159159
160160
- name: Release windows-i686
161-
uses: actions/[email protected]
161+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
162162
env:
163163
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164164
with:
@@ -168,7 +168,7 @@ jobs:
168168
asset_name: libmla-windows-i686-${{ steps.get_version.outputs.VERSION }}.zip
169169

170170
- name: Release windows-x86_64
171-
uses: actions/[email protected]
171+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
172172
env:
173173
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174174
with:
@@ -178,7 +178,7 @@ jobs:
178178
asset_name: libmla-windows-x86_64-${{ steps.get_version.outputs.VERSION }}.zip
179179

180180
- name: Release windows-i686-debug
181-
uses: actions/[email protected]
181+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
182182
env:
183183
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184184
with:
@@ -188,7 +188,7 @@ jobs:
188188
asset_name: libmla-windows-i686-debug-${{ steps.get_version.outputs.VERSION }}.zip
189189

190190
- name: Release windows-x86_64-debug
191-
uses: actions/[email protected]
191+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
192192
env:
193193
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194194
with:
@@ -197,9 +197,9 @@ jobs:
197197
asset_content_type: application/zip
198198
asset_name: libmla-windows-x86_64-debug-${{ steps.get_version.outputs.VERSION }}.zip
199199

200-
- uses: actions/[email protected]
200+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
201201
- name: Release C Header file
202-
uses: actions/[email protected]
202+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
203203
env:
204204
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
205205
with:
@@ -209,7 +209,7 @@ jobs:
209209
asset_name: mla.h
210210

211211
- name: Release CPP Header file
212-
uses: actions/[email protected]
212+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
213213
env:
214214
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215215
with:

.github/workflows/mlar_release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ jobs:
3030
runs-on: ${{matrix.os}}
3131

3232
steps:
33-
- uses: actions/[email protected]
34-
- uses: actions-rs/toolchain@v1
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.6
3535
with:
3636
toolchain: stable
3737
- name: Set target if any
3838
if: matrix.target
3939
run: rustup target add ${{ matrix.target }}
4040
- name: Build
41-
uses: actions-rs/cargo@v1
41+
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # v1.0.1
4242
with:
4343
command: build
4444
args: --release --all-features --package mlar --verbose ${{ matrix.cargo_build }}
4545
- name: Strip resulting binary
4646
if: matrix.build == 'linux'
4747
run: strip ./target/${{ matrix.target }}/release/mlar${{ matrix.extension }}
4848
- name: Upload resulting 'mlar'
49-
uses: actions/upload-artifact@v4.4.3
49+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
5050
with:
5151
name: mlar-${{ matrix.build }}
5252
path: ./target/${{ matrix.target }}/release/mlar${{ matrix.extension }}
@@ -64,15 +64,15 @@ jobs:
6464
echo "using version tag ${GITHUB_REF:15}"
6565
echo "version=${GITHUB_REF:15}" >> $GITHUB_OUTPUT
6666
- name: Checkout code
67-
uses: actions/[email protected]
67+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6868
- name: Get Changelog Entry
6969
id: changelog_reader
70-
uses: mindsers/changelog-reader-action@v2
70+
uses: mindsers/changelog-reader-action@32aa5b4c155d76c94e4ec883a223c947b2f02656 # v2.2.3
7171
with:
7272
path: ./mlar/CHANGELOG.md
7373
- name: Create Release
7474
id: create_release
75-
uses: actions/[email protected]
75+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7878
with:
@@ -82,22 +82,22 @@ jobs:
8282
draft: true
8383

8484
- name: Download Linux artifact
85-
uses: actions/[email protected]
85+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
8686
with:
8787
name: mlar-linux
8888

8989
- name: Download Windows artifact
90-
uses: actions/[email protected]
90+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
9191
with:
9292
name: mlar-windows
9393

9494
- name: Download MacOS artifact
95-
uses: actions/[email protected]
95+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
9696
with:
9797
name: mlar-macos
9898

9999
- name: Release Linux artifact
100-
uses: actions/[email protected]
100+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
101101
env:
102102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103103
with:
@@ -107,7 +107,7 @@ jobs:
107107
asset_name: mlar-linux-static-${{ steps.get_version.outputs.VERSION }}
108108

109109
- name: Release Windows artifact
110-
uses: actions/[email protected]
110+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
111111
env:
112112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113113
with:
@@ -117,7 +117,7 @@ jobs:
117117
asset_name: mlar-windows-${{ steps.get_version.outputs.VERSION }}.exe
118118

119119
- name: Release MacOS artifact
120-
uses: actions/[email protected]
120+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
121121
env:
122122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123123
with:

.github/workflows/py-bindings.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ jobs:
3333
- runner: ubuntu-latest
3434
target: ppc64le
3535
steps:
36-
- uses: actions/[email protected]
37-
- uses: actions/[email protected]
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3838
with:
3939
python-version: '3.11'
4040
- name: Build wheels
41-
uses: PyO3/maturin-action@v1
41+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1.45.0
4242
with:
4343
target: ${{ matrix.platform.target }}
4444
args: --release --out dist --find-interpreter --manifest-path bindings/python/Cargo.toml
4545
sccache: 'true'
4646
manylinux: auto
4747
- name: Upload wheels
48-
uses: actions/upload-artifact@v4.4.3
48+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
4949
with:
5050
name: wheels-linux-${{ matrix.platform.target }}
5151
path: dist
@@ -70,19 +70,19 @@ jobs:
7070
- runner: windows-latest
7171
target: x86
7272
steps:
73-
- uses: actions/[email protected]
74-
- uses: actions/[email protected]
73+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
74+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
7575
with:
7676
python-version: '3.11'
7777
architecture: ${{ matrix.platform.target }}
7878
- name: Build wheels
79-
uses: PyO3/maturin-action@v1
79+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1.45.0
8080
with:
8181
target: ${{ matrix.platform.target }}
8282
args: --release --out dist --find-interpreter --manifest-path bindings/python/Cargo.toml
8383
sccache: 'true'
8484
- name: Upload wheels
85-
uses: actions/upload-artifact@v4.4.3
85+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
8686
with:
8787
name: wheels-windows-${{ matrix.platform.target }}
8888
path: dist
@@ -107,18 +107,18 @@ jobs:
107107
- runner: macos-latest
108108
target: aarch64
109109
steps:
110-
- uses: actions/[email protected]
111-
- uses: actions/[email protected]
110+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
111+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
112112
with:
113113
python-version: '3.11'
114114
- name: Build wheels
115-
uses: PyO3/maturin-action@v1
115+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1.45.0
116116
with:
117117
target: ${{ matrix.platform.target }}
118118
args: --release --out dist --find-interpreter --manifest-path bindings/python/Cargo.toml
119119
sccache: 'true'
120120
- name: Upload wheels
121-
uses: actions/upload-artifact@v4.4.3
121+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
122122
with:
123123
name: wheels-macos-${{ matrix.platform.target }}
124124
path: dist
@@ -134,14 +134,14 @@ jobs:
134134
sdist:
135135
runs-on: ubuntu-latest
136136
steps:
137-
- uses: actions/[email protected]
137+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138138
- name: Build sdist
139-
uses: PyO3/maturin-action@v1
139+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1.45.0
140140
with:
141141
command: sdist
142142
args: --out dist --manifest-path bindings/python/Cargo.toml
143143
- name: Upload sdist
144-
uses: actions/upload-artifact@v4.4.3
144+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
145145
with:
146146
name: wheels-sdist
147147
path: dist

.github/workflows/sanitize.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
# Assert .h and .hpp bindings files are the ones generated
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/[email protected]
21-
- uses: actions-rs/toolchain@v1
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.6
2222
with:
2323
toolchain: stable
24-
- uses: actions-rs/cargo@v1
24+
- uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # v1.0.1
2525
with:
2626
command: install
2727
args: cbindgen
@@ -47,9 +47,9 @@ jobs:
4747

4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/[email protected]
50+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5151
- name: Get ${{ matrix.changelog }} Changelog Entry
52-
uses: mindsers/changelog-reader-action@v2
52+
uses: mindsers/changelog-reader-action@32aa5b4c155d76c94e4ec883a223c947b2f02656 # v2.2.3
5353
id: changelog_reader
5454
with:
5555
# Check format for the last 10 entries

0 commit comments

Comments
 (0)