cosign: 2.5.0 -> 2.5.3
Changes: https://github.com/sigstore/cosign/releases/tag/v2.5.3 https://github.com/sigstore/cosign/releases/tag/v2.5.2 https://github.com/sigstore/cosign/releases/tag/v2.5.1
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "cosign";
|
||||
version = "2.5.0";
|
||||
version = "2.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sigstore";
|
||||
repo = "cosign";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-QvU+JpIcE9EX+ehRWvs2bS2VGgGVekNX8f5+mITIwU0=";
|
||||
hash = "sha256-EpCG20SSZFNc/oMgyUP/oARNTrpkzNsTvsA0Wx+zI00=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optional (stdenv.hostPlatform.isLinux && pivKeySupport) (lib.getDev pcsclite);
|
||||
@@ -29,7 +29,7 @@ buildGoModule (finalAttrs: {
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
vendorHash = "sha256-qIi+Pp4XZg1GxOhM9fCyD9rPaIiQHhoQudB50gzWgrM=";
|
||||
vendorHash = "sha256-YwSi1TqtcGE1sV9NLJ3lxA8kk0gL+9kTgcJzvIJRanE=";
|
||||
|
||||
subPackages = [
|
||||
"cmd/cosign"
|
||||
@@ -50,14 +50,21 @@ buildGoModule (finalAttrs: {
|
||||
preCheck = ''
|
||||
# test all paths
|
||||
unset subPackages
|
||||
|
||||
rm pkg/cosign/ctlog_test.go # Require network access
|
||||
rm pkg/cosign/tlog_test.go # Require network access
|
||||
rm cmd/cosign/cli/verify/verify_test.go # Require network access
|
||||
rm cmd/cosign/cli/verify/verify_blob_attestation_test.go # Require network access
|
||||
rm cmd/cosign/cli/verify/verify_blob_test.go # Require network access
|
||||
'';
|
||||
|
||||
checkFlags =
|
||||
let
|
||||
# Skip tests that require network access
|
||||
skippedTests = [
|
||||
"TestLoadCertsKeylessVerification/default_fulcio"
|
||||
"TestGetCTLogPubKeys"
|
||||
"TestGetRekorPubKeys"
|
||||
"TestVerifyEmbeddedSCT"
|
||||
"TestValidateAndUnpackCertWithSCT"
|
||||
];
|
||||
in
|
||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd cosign \
|
||||
--bash <($out/bin/cosign completion bash) \
|
||||
|
||||
Reference in New Issue
Block a user