Skip to content

Commit b0022ac

Browse files
committed
ci: pin GitHub Actions to commit SHAs
1 parent 7571ee5 commit b0022ac

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Check out repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2424
- name: Install toolchain
25-
uses: dtolnay/rust-toolchain@v1
25+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
2626
with:
2727
toolchain: stable
2828
- name: Cache build artifacts
29-
uses: Swatinem/rust-cache@v2
29+
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
3030
- name: Check third-party license inventory
3131
run: make check-licenses
3232

@@ -35,13 +35,13 @@ jobs:
3535
runs-on: windows-latest
3636
steps:
3737
- name: Check out repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3939
- name: Install toolchain
40-
uses: dtolnay/rust-toolchain@v1
40+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
4141
with:
4242
toolchain: stable
4343
- name: Cache build artifacts
44-
uses: Swatinem/rust-cache@v2
44+
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
4545
- name: cargo test
4646
run: cargo test
4747
# https://github.com/rust-lang/cargo/issues/6669
@@ -53,14 +53,14 @@ jobs:
5353
runs-on: windows-latest
5454
steps:
5555
- name: Check out repository
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
5757
- name: Install toolchain
58-
uses: dtolnay/rust-toolchain@v1
58+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
5959
with:
6060
toolchain: stable
6161
components: rustfmt, clippy
6262
- name: Cache build artifacts
63-
uses: Swatinem/rust-cache@v2
63+
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
6464
- name: cargo fmt (check)
6565
run: cargo fmt -- --check -l
6666
- name: cargo clippy (warnings)
@@ -73,20 +73,20 @@ jobs:
7373
runs-on: windows-latest
7474
steps:
7575
- name: Check out repository
76-
uses: actions/checkout@v4
76+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7777
- name: Install toolchain
78-
uses: dtolnay/rust-toolchain@v1
78+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
7979
with:
8080
toolchain: stable
8181
components: llvm-tools
8282
- name: Cache build artifacts
83-
uses: Swatinem/rust-cache@v2
83+
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
8484
- name: Install cargo-llvm-cov
85-
uses: taiki-e/install-action@cargo-llvm-cov
85+
uses: taiki-e/install-action@50570a4fd0cb7e583e6a512c02bffb9ade28d868 # cargo-llvm-cov
8686
- name: Generate coverage
8787
run: cargo llvm-cov --lcov --output-path lcov.info
8888
- name: Report to codecov.io
89-
uses: codecov/codecov-action@v5
89+
uses: codecov/codecov-action@04b047e8bb82a0c002c8312c1c880fbc6a999d45 # v5
9090
with:
9191
files: lcov.info
9292
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)