1313 name : Check spelling
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v4
16+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1717 - name : Check spelling
18- uses : codespell-project/actions-codespell@master
18+ uses : codespell-project/actions-codespell@cf810cf4cbd6cdefe6ef86e55b64d524a16654a7 # master
1919 with :
2020 builtin : clear,rare,usage,code,en-GB_to_en-US
2121 check_filenames : true
@@ -27,28 +27,23 @@ jobs:
2727 name : Cargo fmt
2828 runs-on : ubuntu-latest
2929 steps :
30- - uses : actions/checkout@v4
31- - uses : actions-rs/ toolchain@v1
30+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
31+ - uses : dtolnay/rust- toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master
3232 with :
3333 toolchain : stable
34- - uses : actions-rs/cargo@v1
35- with :
36- command : fmt
37- args : --check --all
34+ components : rustfmt
35+ - run : cargo fmt --check --all
3836
3937 clippy :
4038 name : Clippy
4139 runs-on : ubuntu-latest
4240 container : fedora:latest
4341 steps :
44- - uses : actions/checkout@v4
42+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4543 - name : Install deps
4644 run : |
4745 dnf install -y make gcc git clippy cargo rust
48- - uses : actions-rs/cargo@v1
49- with :
50- command : clippy
51- args : -- -D warnings -D clippy::panic -D clippy::todo
46+ - run : cargo clippy -- -D warnings -D clippy::panic -D clippy::todo
5247
5348 build_and_test_with_coverage :
5449 name : Build, test with coverage
6459 - name : Install deps
6560 run : |
6661 dnf install -y make gcc git cargo rust git grub2-efi grub2-efi-modules shim llvm
67- - uses : actions/checkout@v4
62+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6863 with :
6964 persist-credentials : false
7065 - name : Fix git trust
@@ -74,14 +69,14 @@ jobs:
7469 - name : Run tests with coverage
7570 run : make test-coverage
7671 - name : Upload coverage report (HTML artifact)
77- uses : actions/upload-artifact@v4
72+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7873 with :
7974 name : coverage-report
8075 path : tests/coverage/
8176 retention-days : 14
8277 - name : Upload coverage report (GitHub Pages)
8378 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
84- uses : actions/upload-pages-artifact@v3
79+ uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
8580 with :
8681 path : tests/coverage/
8782
9691 environment : github-pages
9792 steps :
9893 - name : Deploy to GitHub Pages
99- uses : actions/deploy-pages@v4
94+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
0 commit comments