Skip to content

Commit 0c4fb16

Browse files
committed
ci: SHA-pin actions in rust.yml + proof-regression.yml
Folds the approved CI action-pinning into PR #24 (G2/G3 governance). - proof-regression.yml: pin actions/cache@v4 -> @6849a648 (SHA already trusted in rust.yml). Unblocks the Lean proof job so JtvEcho.lean is actually built/verified by CI. - rust.yml: replace unpinned, mis-named dtolnay/rust-action@stable with the trusted dtolnay/rust-toolchain@4be9e76 # stable (×4), and add a permissions: contents: read block. Clears the Hypatia unpinned_action + missing_permissions findings for rust.yml. Note: rust.yml's *build* jobs will still fail — it targets a different project's layout (packages/jtzig, tools/cli, which don't exist here) and the crate depends on the unvendored sibling patacl-core. That is Phase-3 build-truth work; rust-ci.yml is the correctly-configured Rust workflow. https://claude.ai/code/session_01EJLZKDtcF1RGdKx6TcUTQG
1 parent 0c50296 commit 0c4fb16

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/proof-regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
4949
5050
- name: Cache Lean build
51-
uses: actions/cache@v4
51+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
5252
with:
5353
path: |
5454
jtv_proofs/.lake

.github/workflows/rust.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: ["main"]
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
CARGO_TERM_COLOR: always
1215
RUSTFLAGS: -Dwarnings
@@ -19,7 +22,7 @@ jobs:
1922
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
2023

2124
- name: Install Rust toolchain
22-
uses: dtolnay/rust-action@stable
25+
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
2326

2427
- name: Cache cargo registry
2528
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
@@ -49,7 +52,7 @@ jobs:
4952
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
5053

5154
- name: Install Rust toolchain
52-
uses: dtolnay/rust-action@stable
55+
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
5356

5457
- name: Cache cargo registry
5558
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
@@ -81,7 +84,7 @@ jobs:
8184
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
8285

8386
- name: Install Rust toolchain
84-
uses: dtolnay/rust-action@stable
87+
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
8588
with:
8689
components: clippy
8790

@@ -112,7 +115,7 @@ jobs:
112115
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
113116

114117
- name: Install Rust toolchain
115-
uses: dtolnay/rust-action@stable
118+
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
116119
with:
117120
components: rustfmt
118121

0 commit comments

Comments
 (0)