@@ -49,15 +49,21 @@ jobs:
4949 timeout-minutes : 90
5050 steps :
5151 - uses : actions/checkout@v6
52+ with :
53+ persist-credentials : false
5254
5355 - name : Build
56+ env :
57+ CELLD_BUILD_COMMIT : ${{ github.sha }}
5458 run : |
5559 set -euo pipefail
5660 rustup toolchain install "$RUST_VERSION" --profile minimal
5761 rustup default "$RUST_VERSION"
5862 cargo build --release --locked
5963 version=$(sed -n 's/^version = "\(.*\)"$/\1/p' crates/celld/Cargo.toml | head -1)
60- target/release/celld --version | grep -F "$version"
64+ build_identity=$(target/release/celld --version)
65+ grep -F "$version" <<< "$build_identity"
66+ grep -F "$GITHUB_SHA" <<< "$build_identity"
6167
6268 - name : Package
6369 run : |
8692 packages : read
8793 steps :
8894 - uses : actions/checkout@v6
95+ with :
96+ persist-credentials : false
8997
9098 - uses : docker/setup-buildx-action@v3
9199
@@ -120,6 +128,8 @@ jobs:
120128 attestations : write
121129 steps :
122130 - uses : actions/checkout@v6
131+ with :
132+ persist-credentials : false
123133
124134 - uses : actions/download-artifact@v4
125135 with :
@@ -209,6 +219,7 @@ jobs:
209219 - uses : actions/checkout@v6
210220 with :
211221 ref : ${{ github.event.release.tag_name }}
222+ persist-credentials : false
212223
213224 - name : Resolve and validate the release tag
214225 run : |
@@ -261,6 +272,7 @@ jobs:
261272 - uses : actions/checkout@v6
262273 with :
263274 ref : ${{ github.event.release.tag_name }}
275+ persist-credentials : false
264276
265277 - name : Resolve and validate the release tag
266278 run : |
0 commit comments