Skip to content

Commit 2602a0f

Browse files
committed
Add script and run update for pinning action versions
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 8c91a4d commit 2602a0f

25 files changed

Lines changed: 236 additions & 90 deletions

.github/workflows/CargoAudit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
audit:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717

1818
# We are not using the common workflow here because it installs a bunch of tools we don't need.
1919
# TODO: Once the runner image is updated to include the necessary tools (without downloading), we can switch to the common workflow.
20-
- uses: dtolnay/rust-toolchain@master
20+
- uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
2121
with:
2222
toolchain: "1.89"
2323

24-
- uses: rustsec/audit-check@v2.0.0
24+
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/CargoPublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
if: ${{ startsWith(github.ref, 'refs/heads/release/v') || inputs.dry_run }}
2828

2929
steps:
30-
- uses: actions/checkout@v6
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
with:
3232
fetch-depth: 0
3333
fetch-tags: true
3434
submodules: true
3535

36-
- uses: hyperlight-dev/ci-setup-workflow@v1.9.0
36+
- uses: hyperlight-dev/ci-setup-workflow@f6bd9cc86d0737976d2128c8b8ced8edc017cbb4 # v1.9.0
3737
with:
3838
rust-toolchain: "1.89"
3939

@@ -81,7 +81,7 @@ jobs:
8181
needs_publish hyperlight-guest-tracing
8282
8383
- name: Authenticate with crates.io
84-
uses: rust-lang/crates-io-auth-action@v1
84+
uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4
8585
id: crates-io-auth
8686

8787
- name: Publish hyperlight-libc

.github/workflows/Coverage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
matrix.hypervisor,
3636
matrix.cpu)) }}
3737
steps:
38-
- uses: actions/checkout@v6
38+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3939

40-
- uses: hyperlight-dev/ci-setup-workflow@v1.9.0
40+
- uses: hyperlight-dev/ci-setup-workflow@f6bd9cc86d0737976d2128c8b8ced8edc017cbb4 # v1.9.0
4141
with:
4242
rust-toolchain: "1.89"
4343
env:
@@ -48,7 +48,7 @@ jobs:
4848
sudo chown -R $(id -u):$(id -g) /opt/cargo || true
4949
5050
- name: Rust cache
51-
uses: Swatinem/rust-cache@v2
51+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
5252
with:
5353
shared-key: "${{ runner.os }}-debug"
5454
cache-on-failure: "true"
@@ -79,14 +79,14 @@ jobs:
7979
echo '> For a detailed per-file breakdown, download the **HTML coverage report** from the Artifacts section below.' >> $GITHUB_STEP_SUMMARY
8080
8181
- name: Upload HTML coverage report
82-
uses: actions/upload-artifact@v7
82+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8383
with:
8484
name: coverage-html-${{ matrix.hypervisor }}-${{ matrix.cpu }}
8585
path: target/coverage/html/
8686
if-no-files-found: error
8787

8888
- name: Upload LCOV coverage report
89-
uses: actions/upload-artifact@v7
89+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9090
with:
9191
name: coverage-lcov-${{ matrix.hypervisor }}-${{ matrix.cpu }}
9292
path: target/coverage/lcov.info
@@ -100,7 +100,7 @@ jobs:
100100
issues: write
101101
steps:
102102
- name: Checkout code
103-
uses: actions/checkout@v6
103+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104104

105105
- name: Notify Coverage Failure
106106
run: ./dev/notify-ci-failure.sh --title="Weekly Coverage Failure - ${{ github.run_number }}" --labels="area/ci-periodics,area/testing,lifecycle/needs-review"

.github/workflows/CreateDevcontainerImage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v6
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434

3535
- name: Read Rust toolchain version from ${{ env.RUST_TOOLCHAIN_FILE }}
3636
id: toolchain
@@ -42,21 +42,21 @@ jobs:
4242
4343
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
4444
- name: Log in to the Container registry
45-
uses: docker/login-action@v4
45+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
4646
with:
4747
registry: ${{ env.REGISTRY }}
4848
username: ${{ github.actor }}
4949
password: ${{ secrets.GITHUB_TOKEN }}
5050

5151
- name: Extract metadata (tags, labels) for Docker
5252
id: meta
53-
uses: docker/metadata-action@v6
53+
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
5454
with:
5555
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5656

5757
- name: Build and push Docker image
5858
id: push
59-
uses: docker/build-push-action@v7
59+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
6060
with:
6161
context: ./.devcontainer
6262
push: true

.github/workflows/CreateRelease.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
needs: [release-blocker-check]
2929

3030
steps:
31-
- uses: actions/checkout@v6
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232

33-
- uses: hyperlight-dev/ci-setup-workflow@v1.9.0
33+
- uses: hyperlight-dev/ci-setup-workflow@f6bd9cc86d0737976d2128c8b8ced8edc017cbb4 # v1.9.0
3434
with:
3535
rust-toolchain: "1.89"
3636
env:
@@ -49,9 +49,9 @@ jobs:
4949
needs: [release-blocker-check]
5050

5151
steps:
52-
- uses: actions/checkout@v6
52+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5353

54-
- uses: hyperlight-dev/ci-setup-workflow@v1.9.0
54+
- uses: hyperlight-dev/ci-setup-workflow@f6bd9cc86d0737976d2128c8b8ced8edc017cbb4 # v1.9.0
5555
with:
5656
rust-toolchain: "1.89"
5757
env:
@@ -115,13 +115,13 @@ jobs:
115115
if: ${{ contains(github.ref, 'refs/heads/release/') }}
116116
run: echo "CONFIG=release" >> $GITHUB_ENV
117117

118-
- uses: actions/checkout@v6
118+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
119119
with:
120120
fetch-depth: 0
121121
fetch-tags: true
122122
submodules: true
123123

124-
- uses: hyperlight-dev/ci-setup-workflow@v1.9.0
124+
- uses: hyperlight-dev/ci-setup-workflow@f6bd9cc86d0737976d2128c8b8ced8edc017cbb4 # v1.9.0
125125
with:
126126
rust-toolchain: "1.89"
127127
env:
@@ -146,7 +146,7 @@ jobs:
146146
just tar-static-lib
147147
148148
- name: Download all benchmarks
149-
uses: actions/download-artifact@v8
149+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
150150
with:
151151
pattern: benchmarks_*
152152

.github/workflows/CreateReleaseBranch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- name: Create Release Branch
2323
run: |

.github/workflows/DailyBenchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
issues: write
6464
steps:
6565
- name: Checkout code
66-
uses: actions/checkout@v6
66+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6767

6868
- name: Notify Benchmark Failure
6969
run: ./dev/notify-ci-failure.sh --title="Benchmark Failure - ${{ github.run_number }}" --labels="area/benchmarks,area/testing,lifecycle/needs-review,release-blocker"

.github/workflows/Fuzzing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
issues: write
3333
steps:
3434
- name: Checkout code
35-
uses: actions/checkout@v6
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636

3737
- name: Notify Fuzzing Failure
3838
run: ./dev/notify-ci-failure.sh --labels="area/fuzzing,area/testing,lifecycle/needs-review,release-blocker"

.github/workflows/IssueLabelChecker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
labeler:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
- name: Check and Add label
1616
run: |
1717
# The cryptic head -c -1 is because otherwise gh always terminates output with a newline

.github/workflows/PRLabelChecker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
check-labels:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
- name: Ensure exactly one "kind/*" label is applied
1616
run: |
1717
# Count the number of "kind/*" labels directly from the PR labels

0 commit comments

Comments
 (0)