From f1185f1959cdaeda41a7f5a7b43cbe6b58a7a793 Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Thu, 5 Sep 2024 10:04:26 -0700 Subject: [PATCH] bump @actions/attest from 1.4.1 to 1.4.2 (#225) Signed-off-by: Brian DeHamer --- dist/index.js | Bin 2924980 -> 2924631 bytes package-lock.json | 12 ++++++------ package.json | 4 ++-- src/main.ts | 27 +-------------------------- 4 files changed, 9 insertions(+), 34 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6d1cf4d4b620fb51a952399d6f59c4413c138df8..72119d868ce9a53793a33a167ce6780a6894c9d3 100644 GIT binary patch delta 500 zcmZwC&o2W(6bJAWMO#|c*3YWfRa)9|lyGt*xM-zUlkJpAw%cZRRy5K$ApH}@!NtK{ zMA9qaLi8r_ceps>s~j9m@|pKC^D^_^&Hc6O_4e9z^_iaV5>|b7xgAA`Qt>LQ85LHX z7q+e5-hI(XaucaAcS%FkNH>@$C)LMCWJuK)-JTUN+6KY(xG?;<}Ov4N$AqBHA*Su_{1212xlc*^G delta 283 zcmXZWKW_nX0LJnBPM!MKqe_+H`qP#xm)JUpT_XBHCh-nPvgNj}4qXL+_iGcjMx#B^VX7k&CU&2G0>?;LC2C=V@jWSIgAT)2Q6Dm=J^ z7e4qAKoD2Z5JDK&h~NfM#Bhr^?vOwd_edd)40Jp=mMI65k9n?T|1IUGT~jnQdU~o? z^hW*t?f5!xl} Resolves when the action is complete. */ export async function run(): Promise { try { - const issuer = getIssuer() - // Calculate subject from inputs and generate provenance - const predicate = await buildSLSAProvenancePredicate(issuer) + const predicate = await buildSLSAProvenancePredicate() core.setOutput('predicate', predicate.params) core.setOutput('predicate-type', predicate.type) @@ -25,21 +18,3 @@ export async function run(): Promise { core.setFailed(error.message) } } - -// Derive the current OIDC issuer based on the server URL -function getIssuer(): string { - const serverURL = process.env.GITHUB_SERVER_URL || 'https://github.com' - - // Ensure the server URL is a valid GitHub server URL - if (!VALID_SERVER_URLS.some(valid_url => serverURL.match(valid_url))) { - throw new Error(`Invalid server URL: ${serverURL}`) - } - - let host = new URL(serverURL).hostname - - if (host === 'github.com') { - host = 'githubusercontent.com' - } - - return `https://token.actions.${host}` -}