From 3129fdcb3f364761dba67145e3024edd6963409a Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 11 Jun 2026 12:29:57 +0200 Subject: [PATCH] sigstore: test cosign 3.1.1 Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/update-deps.yml | 10 ++++++++++ __tests__/sigstore/sigstore.test.itg.ts | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml index 7e5b0e45..9f2d5331 100644 --- a/.github/workflows/update-deps.yml +++ b/.github/workflows/update-deps.yml @@ -123,6 +123,10 @@ jobs: return new RegExp(`^( ${escapeRegExp(key)}: ")([^"]*)(")$`, 'm'); } + function tsConstStringPattern(key) { + return new RegExp(`^(const ${escapeRegExp(key)} = ')([^']*)(';)$`, 'm'); + } + const dependencyConfigs = { docker: { name: 'Docker version', @@ -263,6 +267,12 @@ jobs: key: 'COSIGN_VERSION', value: tag, pattern: dockerfileArgPattern('COSIGN_VERSION') + }, + { + path: '__tests__/sigstore/sigstore.test.itg.ts', + key: 'currentCosignVersion', + value: tag, + pattern: tsConstStringPattern('currentCosignVersion') } ] }; diff --git a/__tests__/sigstore/sigstore.test.itg.ts b/__tests__/sigstore/sigstore.test.itg.ts index 57612d8d..509a2d3b 100644 --- a/__tests__/sigstore/sigstore.test.itg.ts +++ b/__tests__/sigstore/sigstore.test.itg.ts @@ -36,8 +36,8 @@ const maybe = runTest ? describe : describe.skip; const maybeIdToken = runTest && process.env.ACTIONS_ID_TOKEN_REQUEST_URL ? describe : describe.skip; const imageName = 'ghcr.io/docker/actions-toolkit/test'; -const currentCosignVersion = 'v3.0.6'; -const signAttestationCosignVersions = ['v3.0.2', currentCosignVersion] as const; +const currentCosignVersion = 'v3.1.1'; +const signAttestationCosignVersions = ['v3.0.2', 'v3.0.6', currentCosignVersion] as const; const installedCosign = new Map>(); async function installCosign(version: string): Promise {