Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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')
}
]
};
Expand Down
4 changes: 2 additions & 2 deletions __tests__/sigstore/sigstore.test.itg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Promise<string>>();

async function installCosign(version: string): Promise<string> {
Expand Down
Loading