Skip to content

Commit 2a4793f

Browse files
authored
fix: preserve contract artifact permissions (#23174)
- Preserve existing JSON file mode when stamping Aztec versions into Noir contract artifacts. - Prevent release images from containing root-only-readable account artifacts used by Spartan deploy jobs.
1 parent c68c119 commit 2a4793f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

noir-projects/noir-contracts/bootstrap.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ function stamp_aztec_version {
103103
semver check "$REF_NAME" 2>/dev/null && version="${REF_NAME#v}"
104104
local tmp=$(mktemp)
105105
jq --arg v "$version" '.aztec_version = $v' "$json_path" > "$tmp"
106-
mv "$tmp" "$json_path"
106+
cat "$tmp" > "$json_path"
107+
rm "$tmp"
107108
}
108109
export -f stamp_aztec_version
109110

0 commit comments

Comments
 (0)