@prodgator/report 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7520,7 +7520,7 @@ async function run(deps = {}) {
|
|
|
7520
7520
|
const argv = deps.argv ?? process.argv.slice(2);
|
|
7521
7521
|
const log = deps.log ?? { info: (m) => console.log(m), warn: (m) => console.log(`Warning: ${m}`), error: (m) => console.error(m) };
|
|
7522
7522
|
if (argv.includes("--version")) {
|
|
7523
|
-
log.info("3.
|
|
7523
|
+
log.info("3.5.0");
|
|
7524
7524
|
return 0;
|
|
7525
7525
|
}
|
|
7526
7526
|
let failOnError = false;
|
|
@@ -7538,7 +7538,7 @@ async function run(deps = {}) {
|
|
|
7538
7538
|
const problem = tokenProblem(token, opts.audience, ci.provider, variable, (deps.nowMs ?? Date.now)());
|
|
7539
7539
|
if (problem) throw new CliError(problem);
|
|
7540
7540
|
if (opts.gate) {
|
|
7541
|
-
const client2 = { getToken: async () => token, fetch: deps.fetch, sleep: deps.sleep, fixedToken: true, userAgent: `prodgator-report/${"3.
|
|
7541
|
+
const client2 = { getToken: async () => token, fetch: deps.fetch, sleep: deps.sleep, fixedToken: true, userAgent: `prodgator-report/${"3.5.0"} (${ci.provider}; gate)` };
|
|
7542
7542
|
return await runGate(ci, { prodgatorUrl: opts.prodgatorUrl, audience: opts.audience, timeoutMinutes: opts.gateTimeoutMinutes }, client2, {
|
|
7543
7543
|
sleep: deps.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms))),
|
|
7544
7544
|
nowMs: deps.nowMs ?? Date.now,
|
|
@@ -7561,7 +7561,7 @@ async function run(deps = {}) {
|
|
|
7561
7561
|
fetch: deps.fetch,
|
|
7562
7562
|
sleep: deps.sleep,
|
|
7563
7563
|
fixedToken: true,
|
|
7564
|
-
userAgent: `prodgator-report/${"3.
|
|
7564
|
+
userAgent: `prodgator-report/${"3.5.0"} (${ci.provider})`
|
|
7565
7565
|
};
|
|
7566
7566
|
const request = buildIngestRequest({ job: { name: opts.jobName ?? ci.jobName, matrix: opts.matrix, runner: ci.runner }, name: opts.name, summary, attestations, files });
|
|
7567
7567
|
const res = await sendReport(opts.prodgatorUrl, ci.provider, request, opts.audience, client, ci.azure);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prodgator/report",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Send CI job summaries, test results, attestations and artifacts to Prodgator, authenticated with the CI system's OIDC token",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.prodgator.io/pipelines/run-reports",
|