mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 22:46:36 +01:00
Share import mac code signing certificate steps for release (#851)
This commit is contained in:
@@ -27,19 +27,23 @@ sign_binary() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
codesign \
|
||||
-s "$identity" \
|
||||
-f \
|
||||
--verbose=4 \
|
||||
--timestamp \
|
||||
--options runtime \
|
||||
$exe_path
|
||||
"$exe_path"
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
exit_with_error "signing failed"
|
||||
fi
|
||||
|
||||
codesign --verify "$exe_path" --verbose=4
|
||||
|
||||
set +x
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user