This commit is contained in:
Graham Christensen 2024-04-18 14:29:57 -04:00
parent fad1e74d54
commit a1129905cc
3 changed files with 2160 additions and 916 deletions

32
dist/index.js generated vendored
View file

@ -94412,9 +94412,10 @@ const got = source_create(defaults);
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@59a86c183df9930f8775748ae0733f94d1b11220_2ofemuz4qq5d23wbavznuv3z7e/node_modules/detsys-ts/dist/correlation.js ;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@1b12595783709c71515245d26437934a9f336598_b6j756lg3cqeptkcpq5wzeu4sa/node_modules/detsys-ts/dist/correlation.js
const OPTIONAL_VARIABLES = ["INVOCATION_ID"];
function identify(projectName) { function identify(projectName) {
const ident = { const ident = {
correlation_source: "github-actions", correlation_source: "github-actions",
@ -94463,6 +94464,7 @@ function identify(projectName) {
"GITHUB_RUN_ID", "GITHUB_RUN_ID",
"GITHUB_RUN_NUMBER", "GITHUB_RUN_NUMBER",
"GITHUB_RUN_ATTEMPT", "GITHUB_RUN_ATTEMPT",
"INVOCATION_ID",
]), ]),
groups: { groups: {
ci: "github-actions", ci: "github-actions",
@ -94481,22 +94483,26 @@ function identify(projectName) {
function hashEnvironmentVariables(prefix, variables) { function hashEnvironmentVariables(prefix, variables) {
const hash = (0,external_node_crypto_namespaceObject.createHash)("sha256"); const hash = (0,external_node_crypto_namespaceObject.createHash)("sha256");
for (const varName of variables) { for (const varName of variables) {
const value = process.env[varName]; let value = process.env[varName];
if (value === undefined) { if (value === undefined) {
core.debug(`Environment variable not set: ${varName} -- can't generate the requested identity`); if (OPTIONAL_VARIABLES.includes(varName)) {
return undefined; core.debug(`Optional environment variable not set: ${varName} -- substituting with the variable name`);
} value = varName;
else { }
hash.update(value); else {
hash.update("\0"); core.debug(`Environment variable not set: ${varName} -- can't generate the requested identity`);
return undefined;
}
} }
hash.update(value);
hash.update("\0");
} }
return `${prefix}-${hash.digest("hex")}`; return `${prefix}-${hash.digest("hex")}`;
} }
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@59a86c183df9930f8775748ae0733f94d1b11220_2ofemuz4qq5d23wbavznuv3z7e/node_modules/detsys-ts/dist/package.json ;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@1b12595783709c71515245d26437934a9f336598_b6j756lg3cqeptkcpq5wzeu4sa/node_modules/detsys-ts/dist/package.json
const package_namespaceObject = {"i8":"1.0.0"}; const package_namespaceObject = {"i8":"1.0.0"};
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@59a86c183df9930f8775748ae0733f94d1b11220_2ofemuz4qq5d23wbavznuv3z7e/node_modules/detsys-ts/dist/platform.js ;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@1b12595783709c71515245d26437934a9f336598_b6j756lg3cqeptkcpq5wzeu4sa/node_modules/detsys-ts/dist/platform.js
/** /**
* @packageDocumentation * @packageDocumentation
* Helpers for determining system attributes of the current runner. * Helpers for determining system attributes of the current runner.
@ -94536,7 +94542,7 @@ function getNixPlatform(archOs) {
} }
} }
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@59a86c183df9930f8775748ae0733f94d1b11220_2ofemuz4qq5d23wbavznuv3z7e/node_modules/detsys-ts/dist/inputs.js ;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@1b12595783709c71515245d26437934a9f336598_b6j756lg3cqeptkcpq5wzeu4sa/node_modules/detsys-ts/dist/inputs.js
/** /**
* @packageDocumentation * @packageDocumentation
* Helpers for getting values from an Action's configuration. * Helpers for getting values from an Action's configuration.
@ -94604,7 +94610,7 @@ const getStringOrUndefined = (name) => {
}; };
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@59a86c183df9930f8775748ae0733f94d1b11220_2ofemuz4qq5d23wbavznuv3z7e/node_modules/detsys-ts/dist/sourcedef.js ;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@1b12595783709c71515245d26437934a9f336598_b6j756lg3cqeptkcpq5wzeu4sa/node_modules/detsys-ts/dist/sourcedef.js
function constructSourceParameters(legacyPrefix) { function constructSourceParameters(legacyPrefix) {
@ -94656,7 +94662,7 @@ const validate = uuid_dist/* validate */.Gu;
const stringify = uuid_dist/* stringify */.Pz; const stringify = uuid_dist/* stringify */.Pz;
const parse = uuid_dist/* parse */.Qc; const parse = uuid_dist/* parse */.Qc;
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@59a86c183df9930f8775748ae0733f94d1b11220_2ofemuz4qq5d23wbavznuv3z7e/node_modules/detsys-ts/dist/main.js ;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@1b12595783709c71515245d26437934a9f336598_b6j756lg3cqeptkcpq5wzeu4sa/node_modules/detsys-ts/dist/main.js
/** /**
* @packageDocumentation * @packageDocumentation
* Determinate Systems' TypeScript library for creating GitHub Actions logic. * Determinate Systems' TypeScript library for creating GitHub Actions logic.

View file

@ -49,4 +49,4 @@
"prettier": "^3.2.5", "prettier": "^3.2.5",
"typescript": "^5.4.5" "typescript": "^5.4.5"
} }
} }

File diff suppressed because it is too large Load diff