Skip to content

Commit 59a549d

Browse files
authored
fix(workflows): validate cosign version from JSON (#561)
1 parent f86e309 commit 59a549d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/reusable-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,8 @@ jobs:
257257
run: |
258258
set -euo pipefail
259259
260-
cosign_version="$(cosign version)"
261-
printf '%s\n' "$cosign_version"
262-
[[ "$cosign_version" == *"GitVersion: v3.1.2"* ]]
260+
cosign version
261+
[[ "$(cosign version --json | jq -r '.gitVersion')" == "v3.1.2" ]]
263262
command -v gh
264263
gh --version
265264

0 commit comments

Comments
 (0)