Skip to content

Commit 369391b

Browse files
committed
_sign-pkg-cosign.sh: use long-form option [ci skip]
`--yes=true` also works. I found the cosign help screen misleading, `--yes=false` is the default, meaning to do ask the Y/N question: ```` -y, --yes=false: skip confirmation prompts for non-destructive operations ```
1 parent c0b4840 commit 369391b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_sign-pkg-cosign.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ -n "${COSIGN_PKG_KEY:-}" ] && \
1515
file="$1"
1616
echo "Package signing with cosign: '${file}'"
1717
tr -d '\n' <<EOF | \
18-
cosign sign-blob -y --key="${COSIGN_PKG_KEY}" --new-bundle-format=true --bundle="${file}".sigstore "${file}"
18+
cosign sign-blob --yes --key="${COSIGN_PKG_KEY}" --new-bundle-format=true --bundle="${file}".sigstore "${file}"
1919
${COSIGN_PKG_KEY_PASS}
2020
EOF
2121
chmod 0644 "${file}".sigstore # cosign creates it with 0600

0 commit comments

Comments
 (0)