Skip to content

Commit cef821c

Browse files
committed
feat(security): fleet-wide workflow hardening (SHA pinning + permissions)
1 parent f6a16f0 commit cef821c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ocaml-core.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
- 'dune-project'
2020
- '*.opam'
2121

22+
permissions: read-all
23+
2224
jobs:
2325
build:
2426
name: Build and Test OCaml Core

.github/workflows/security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727

2828
- name: Install Rust toolchain
29-
uses: dtolnay/rust-toolchain@stable
29+
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
3030

3131
- name: Install cargo-audit
3232
run: cargo install cargo-audit --locked
@@ -60,7 +60,7 @@ jobs:
6060
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161

6262
- name: Install Rust toolchain
63-
uses: dtolnay/rust-toolchain@stable
63+
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
6464

6565
- name: Cache cargo registry
6666
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4

0 commit comments

Comments
 (0)