Skip to content

Commit 24211d1

Browse files
committed
ci: pin all workflow action refs to commit SHAs
1 parent d372020 commit 24211d1

5 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/build-artifacts.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
name: Rust project - latest
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2323

24-
- uses: actions-rust-lang/setup-rust-toolchain@v1
24+
- uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
2525
with:
2626
target: aarch64-unknown-linux-musl
2727

2828
- name: Cache Cargo dependencies
29-
uses: Swatinem/rust-cache@v2
29+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
3030
with:
3131
key: aarch64-unknown-linux-musl
3232

@@ -63,14 +63,14 @@ jobs:
6363
run: tar czf redlib-aarch64-unknown-linux-musl.tar.gz -C target/aarch64-unknown-linux-musl/release/ redlib
6464

6565
- name: Upload binary as workflow artifact
66-
uses: actions/upload-artifact@v4
66+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6767
with:
6868
name: redlib-aarch64-unknown-linux-musl
6969
path: target/aarch64-unknown-linux-musl/release/redlib
7070
retention-days: 1
7171

7272
- name: Upload release
73-
uses: softprops/action-gh-release@v2
73+
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
7474
with:
7575
tag_name: ${{ steps.version.outputs.VERSION }}
7676
name: ${{ steps.version.outputs.VERSION }} - ${{ github.event.head_commit.message }}

.github/workflows/main-docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2525

2626
- name: Download binary artifact from Release Build
27-
uses: actions/download-artifact@v4
27+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
2828
with:
2929
name: redlib-aarch64-unknown-linux-musl
3030
path: docker-bin/
@@ -36,25 +36,25 @@ jobs:
3636

3737
- name: Docker meta
3838
id: meta
39-
uses: docker/metadata-action@v5
39+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
4040
with:
4141
images: ${{ env.REGISTRY_IMAGE }}
4242
tags: |
4343
type=sha,prefix=sha-,format=short,event=branch
4444
type=raw,value=latest,enable={{is_default_branch}}
4545
4646
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v3
47+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
4848

4949
- name: Login to GitHub Container Registry
50-
uses: docker/login-action@v3
50+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5151
with:
5252
registry: ghcr.io
5353
username: ${{ github.actor }}
5454
password: ${{ secrets.GITHUB_TOKEN }}
5555

5656
- name: Build and push (ARM64)
57-
uses: docker/build-push-action@v5
57+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
5858
with:
5959
context: .
6060
platforms: linux/arm64

.github/workflows/main-rust.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020

2121
steps:
2222
- name: Checkout sources
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2424

2525
- name: Cache Packages
26-
uses: Swatinem/rust-cache@v2
26+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
2727

2828
- name: Install stable toolchain
29-
uses: dtolnay/rust-toolchain@stable
29+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
3030
with:
3131
toolchain: stable
3232

@@ -56,7 +56,7 @@ jobs:
5656
- name: Calculate SHA256 checksum
5757
run: sha256sum target/x86_64-unknown-linux-musl/release/redlib > redlib.sha256
5858

59-
- uses: actions/upload-artifact@v4
59+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6060
name: Upload a Build Artifact
6161
with:
6262
name: redlib
@@ -67,7 +67,7 @@ jobs:
6767
6868

6969
- name: Release
70-
uses: softprops/action-gh-release@v1
70+
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
7171
if: github.base_ref != 'main' && github.event_name == 'release'
7272
with:
7373
tag_name: ${{ steps.version.outputs.VERSION }}

.github/workflows/pull-request.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout sources
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2323

2424
- name: Install stable toolchain
25-
uses: dtolnay/rust-toolchain@stable
25+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
2626
with:
2727
toolchain: stable
2828

2929
- name: Cache Cargo dependencies
30-
uses: Swatinem/rust-cache@v2
30+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
3131

3232
- name: Install cargo-nextest
33-
uses: taiki-e/install-action@nextest
33+
uses: taiki-e/install-action@1222bc9d54bca5582f30a2aac6829eeb5fccf68b # nextest
3434

3535
- name: Run cargo nextest
3636
run: cargo nextest run
@@ -41,10 +41,10 @@ jobs:
4141

4242
steps:
4343
- name: Checkout sources
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4545

4646
- name: Install stable toolchain with rustfmt component
47-
uses: dtolnay/rust-toolchain@stable
47+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
4848
with:
4949
toolchain: stable
5050
components: rustfmt
@@ -58,16 +58,16 @@ jobs:
5858

5959
steps:
6060
- name: Checkout sources
61-
uses: actions/checkout@v3
61+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
6262

6363
- name: Install stable toolchain with clippy component
64-
uses: dtolnay/rust-toolchain@stable
64+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
6565
with:
6666
toolchain: stable
6767
components: clippy
6868

6969
- name: Cache Cargo dependencies
70-
uses: Swatinem/rust-cache@v2
70+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
7171

7272
- name: Run cargo clippy
7373
run: cargo clippy -- -D warnings

.github/workflows/update-lockfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
update-lockfile:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1414
with:
1515
ref: personal
1616

17-
- uses: actions-rust-lang/setup-rust-toolchain@v1
17+
- uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
1818

1919
- name: Run cargo update
2020
run: cargo update
2121

22-
- uses: stefanzweifel/git-auto-commit-action@v5
22+
- uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0
2323
with:
2424
commit_message: "chore: update Cargo.lock [skip ci]"
2525
file_pattern: Cargo.lock

0 commit comments

Comments
 (0)