Skip to content

Commit eeebcc9

Browse files
pin GitHub Actions to commit SHA (#2388)
* pin GitHub Actions to commit SHA * fix conflict
1 parent d26a502 commit eeebcc9

14 files changed

Lines changed: 161 additions & 159 deletions

.github/workflows/bench.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Install Rust
18-
uses: dtolnay/rust-toolchain@1.89.0
18+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
1919
with:
2020
components: rustfmt, clippy
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
2222
- name: Install uv
23-
uses: astral-sh/setup-uv@v5
23+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
2424
with:
2525
enable-cache: true
2626
- name: Install python deps
@@ -31,7 +31,7 @@ jobs:
3131
- name: Run benchmark
3232
run: make benchmark-action
3333
- name: Store benchmark result
34-
uses: benchmark-action/github-action-benchmark@v1
34+
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1
3535
with:
3636
tool: 'cargo'
3737
output-file-path: output.txt

.github/workflows/cairo_1_programs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Install Rust toolchain
15-
uses: dtolnay/rust-toolchain@1.89.0
15+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
1818
- name: Set up Cargo cache
19-
uses: Swatinem/rust-cache@v2
19+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
2020
- name: install corelib
2121
run: cd cairo1-run/ && make deps
2222
- name: Run tests

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
changelog:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: dangoslen/changelog-enforcer@v3
14+
- uses: dangoslen/changelog-enforcer@204e7d3ef26579f4cd0fd759c57032656fdf23c7 # v3
1515
with:
1616
skipLabels: nochangelog,pipelines,tests,documentation

.github/workflows/fresh_run.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ jobs:
3535
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
3636
3737
- name: Checkout
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
3939

4040
- name: Install Rust
41-
uses: dtolnay/rust-toolchain@1.89.0
41+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
4242

4343
- name: Install uv
44-
uses: astral-sh/setup-uv@v5
44+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
4545
with:
4646
enable-cache: true
4747

@@ -80,7 +80,7 @@ jobs:
8080
8181
- name: Create Issue
8282
if: ${{ failure() }}
83-
uses: JasonEtco/create-an-issue@v2
83+
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2
8484
env:
8585
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8686
OS: ${{ matrix.os_name}}

.github/workflows/fuzzer.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
steps:
1212

1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
1515
with:
1616
ref: ${{ github.head_ref }}
1717

1818

1919
- name: Cache Inputs
2020
id: cache-inputs
21-
uses: actions/cache@v3
21+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3
2222
with:
2323
# Path where the inputs for the fuzzer are stored
2424
path: fuzzer/hfuzz_workspace/fuzz_json/input
@@ -51,14 +51,14 @@ jobs:
5151
cd fuzzer
5252
HFUZZ_RUN_ARGS="--dict=json.dict --minimize --timeout 60 -T" cargo hfuzz run fuzz_json
5353
54-
- uses: stefanzweifel/git-auto-commit-action@v4
54+
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4
5555
with:
5656
commit_message: changing report
5757
file_pattern: '*/hfuzz_workspace/fuzzer/fuzz_json/HONGGFUZZ* */hfuzz_workspace/fuzzer/fuzz_json/*.fuzz'
5858

5959
# Checkout current and last commit for the diff
6060
- name: Checkout commits
61-
uses: actions/checkout@v4
61+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
6262
with:
6363
fetch-depth: 2
6464

@@ -69,7 +69,7 @@ jobs:
6969

7070
# If a new crash was found, create an issue
7171
- name: Create issue
72-
uses: JasonEtco/create-an-issue@v2
72+
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2
7373
if: ${{ steps.check_file_changed.outputs.report != '' }}
7474
env:
7575
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/hint_accountant.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Install Rust toolchain
15-
uses: dtolnay/rust-toolchain@1.89.0
15+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
1818
- name: Set up Cargo cache
19-
uses: Swatinem/rust-cache@v2
19+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
2020
- name: Check Build
2121
run: cargo build -p hint_accountant
2222
- name: Clone cairo-lang repo
2323
run: git clone --depth=1 https://github.com/starkware-libs/cairo-lang
2424
- name: Run the hint accounting script
2525
run: cargo r -p hint_accountant | tee comment.md
2626
- name: Update comment in tracking issue
27-
uses: peter-evans/create-or-update-comment@v4
27+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
2828
with:
2929
issue-number: 1031
3030
comment-id: 1518234161

.github/workflows/hyper_threading_benchmarks.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout PR
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
1919

2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v5
21+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
2222
with:
2323
enable-cache: true
2424

@@ -28,7 +28,7 @@ jobs:
2828
sudo apt-get install -y hyperfine
2929
3030
- name: Install Rust
31-
uses: dtolnay/rust-toolchain@1.89.0
31+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
3232
with:
3333
components: rustfmt, clippy
3434

@@ -39,20 +39,20 @@ jobs:
3939
cp ./examples/hyper_threading/hyper-threading-workflow.sh ${{ github.workspace }}/hyper-threading-workflow.sh
4040
4141
- name: Upload PR Binary
42-
uses: actions/upload-artifact@v4
42+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4343
with:
4444
name: hyper_threading_pr_binary
4545
path: ${{ github.workspace }}/hyper_threading_pr
4646

4747
- name: Upload Workflow Script
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4949
with:
5050
name: hyper_threading_workflow_script
5151
path: ${{ github.workspace }}/hyper-threading-workflow.sh
5252

5353

5454
- name: Checkout Main Branch
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
5656
with:
5757
ref: 'main'
5858

@@ -62,13 +62,13 @@ jobs:
6262
cp target/release/hyper_threading ${{ github.workspace }}/hyper_threading_main
6363
6464
- name: Download hyper_threading_pr_binary
65-
uses: actions/download-artifact@v4
65+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
6666
with:
6767
name: hyper_threading_pr_binary
6868
path: ${{ github.workspace }}/
6969

7070
- name: Download hyper_threading_workflow_script
71-
uses: actions/download-artifact@v4
71+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
7272
with:
7373
name: hyper_threading_workflow_script
7474
path: ${{ github.workspace }}/
@@ -97,7 +97,7 @@ jobs:
9797
cat result.md
9898
9999
- name: Find comment
100-
uses: peter-evans/find-comment@v2
100+
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1 # v2
101101
id: fc
102102
with:
103103
issue-number: ${{ github.event.pull_request.number }}
@@ -106,14 +106,14 @@ jobs:
106106

107107
- name: Create comment
108108
if: steps.fc.outputs.comment-id == ''
109-
uses: peter-evans/create-or-update-comment@v3
109+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
110110
with:
111111
issue-number: ${{ github.event.pull_request.number }}
112112
body-path: result.md
113113

114114
- name: Update comment
115115
if: steps.fc.outputs.comment-id != ''
116-
uses: peter-evans/create-or-update-comment@v3
116+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
117117
with:
118118
comment-id: ${{ steps.fc.outputs.comment-id }}
119119
body-path: result.md

.github/workflows/hyperfine.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
benchmark-hashes-head: ${{ steps.export-hashes.outputs.benchmark-hashes-head }}
2424
steps:
2525
- name: Checkout base commit
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
2727
with:
2828
ref: ${{ github.event.pull_request[matrix.branch].sha }}
2929

3030
- name: Fetch from cache
31-
uses: actions/cache@v4
31+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3232
id: cache
3333
with:
3434
path: ${{ matrix.branch }}_programs/*.json
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Install uv
3939
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
40-
uses: astral-sh/setup-uv@v5
40+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
4141
with:
4242
enable-cache: true
4343
- name: Install python deps
@@ -70,25 +70,25 @@ jobs:
7070
runs-on: ubuntu-24.04
7171
steps:
7272
- name: Populate cache
73-
uses: actions/cache@v4
73+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
7474
id: cache
7575
with:
7676
path: bin/cairo-vm-cli-${{ matrix.branch }}
7777
key: binary-${{ github.event.pull_request[matrix.branch].sha }}
7878

7979
- name: Install Rust
8080
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
81-
uses: dtolnay/rust-toolchain@1.89.0
81+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
8282

8383
- name: Checkout
8484
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
85-
uses: actions/checkout@v4
85+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
8686
with:
8787
ref: ${{ github.event.pull_request[matrix.branch].sha }}
8888

8989
- name: Fetch Rust cache
9090
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
91-
uses: Swatinem/rust-cache@v2
91+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
9292

9393
- name: Build binary
9494
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
@@ -107,30 +107,30 @@ jobs:
107107
runs-on: ubuntu-24.04
108108
steps:
109109
- name: Install Hyperfine
110-
uses: taiki-e/install-action@v2
110+
uses: taiki-e/install-action@a6b2e2dcd845ddd7f509ce4f3ed3d922b80cc5d9 # v2
111111
with:
112112
tool: hyperfine@1.19
113113

114114
- name: Fetch base binary
115-
uses: actions/cache/restore@v4
115+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
116116
with:
117117
path: bin/cairo-vm-cli-base
118118
key: binary-${{ github.event.pull_request.base.sha }}
119119

120120
- name: Fetch HEAD binary
121-
uses: actions/cache/restore@v4
121+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
122122
with:
123123
path: bin/cairo-vm-cli-head
124124
key: binary-${{ github.event.pull_request.head.sha }}
125125

126126
- name: Fetch base programs
127-
uses: actions/cache/restore@v4
127+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
128128
with:
129129
path: base_programs/*.json
130130
key: benchmarks-base-${{ needs.build-programs.outputs.benchmark-hashes-base }}
131131

132132
- name: Fetch head programs
133-
uses: actions/cache/restore@v4
133+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
134134
with:
135135
path: head_programs/*.json
136136
key: benchmarks-head-${{ needs.build-programs.outputs.benchmark-hashes-head }}
@@ -179,7 +179,7 @@ jobs:
179179
180180
- name: Find comment
181181
if: ${{ steps.run-benchmarks.outputs.benchmark_count != 0 }}
182-
uses: peter-evans/find-comment@v3
182+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3
183183
id: fc
184184
with:
185185
issue-number: ${{ github.event.pull_request.number }}
@@ -188,14 +188,14 @@ jobs:
188188

189189
- name: Create comment
190190
if: steps.fc.outputs.comment-id == '' && steps.run-benchmarks.outputs.benchmark_count != 0
191-
uses: peter-evans/create-or-update-comment@v4
191+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
192192
with:
193193
issue-number: ${{ github.event.pull_request.number }}
194194
body-path: comment_body.md
195195

196196
- name: Update comment
197197
if: steps.fc.outputs.comment-id != '' && steps.run-benchmarks.outputs.benchmark_count != 0
198-
uses: peter-evans/create-or-update-comment@v4
198+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
199199
with:
200200
comment-id: ${{ steps.fc.outputs.comment-id }}
201201
body-path: comment_body.md

.github/workflows/iai_main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
1313
- name: Install Rust
14-
uses: dtolnay/rust-toolchain@1.89.0
14+
uses: dtolnay/rust-toolchain@451ce45ce31d200b52705aadd15ce75018b006de # 1.89.0
1515
- name: Set up cargo cache
16-
uses: Swatinem/rust-cache@v2
16+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
1717
- name: Install uv
18-
uses: astral-sh/setup-uv@v5
18+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
1919
with:
2020
enable-cache: true
2121
- name: Install python deps
@@ -34,7 +34,7 @@ jobs:
3434
run: make iai-benchmark-action
3535

3636
- name: Save cache for ${{ github.sha }}
37-
uses: actions/cache/save@v3
37+
uses: actions/cache/save@6f8efc29b200d32929f49075959781ed54ec270c # v3
3838
with:
3939
path: |
4040
*/target/iai/iai_benchmark/

0 commit comments

Comments
 (0)