@prodgator/report 1.10.0 → 1.11.5
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
|
@@ -5420,7 +5420,7 @@ async function run(deps = {}) {
|
|
|
5420
5420
|
const argv = deps.argv ?? process.argv.slice(2);
|
|
5421
5421
|
const log = deps.log ?? { info: (m) => console.log(m), warn: (m) => console.log(`Warning: ${m}`), error: (m) => console.error(m) };
|
|
5422
5422
|
if (argv.includes("--version")) {
|
|
5423
|
-
log.info("1.
|
|
5423
|
+
log.info("1.11.5");
|
|
5424
5424
|
return 0;
|
|
5425
5425
|
}
|
|
5426
5426
|
let failOnError = false;
|
|
@@ -5436,7 +5436,7 @@ async function run(deps = {}) {
|
|
|
5436
5436
|
const problem = tokenProblem(token, opts.audience, ci.provider, variable, (deps.nowMs ?? Date.now)());
|
|
5437
5437
|
if (problem) throw new CliError(problem);
|
|
5438
5438
|
if (opts.gate) {
|
|
5439
|
-
const client2 = { getToken: async () => token, fetch: deps.fetch, sleep: deps.sleep, fixedToken: true, userAgent: `prodgator-report/${"1.
|
|
5439
|
+
const client2 = { getToken: async () => token, fetch: deps.fetch, sleep: deps.sleep, fixedToken: true, userAgent: `prodgator-report/${"1.11.5"} (${ci.provider}; gate)` };
|
|
5440
5440
|
return await runGate(ci, { prodgatorUrl: opts.prodgatorUrl, audience: opts.audience, timeoutMinutes: opts.gateTimeoutMinutes }, client2, {
|
|
5441
5441
|
sleep: deps.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms))),
|
|
5442
5442
|
nowMs: deps.nowMs ?? Date.now,
|
|
@@ -5459,7 +5459,7 @@ async function run(deps = {}) {
|
|
|
5459
5459
|
fetch: deps.fetch,
|
|
5460
5460
|
sleep: deps.sleep,
|
|
5461
5461
|
fixedToken: true,
|
|
5462
|
-
userAgent: `prodgator-report/${"1.
|
|
5462
|
+
userAgent: `prodgator-report/${"1.11.5"} (${ci.provider})`
|
|
5463
5463
|
};
|
|
5464
5464
|
const request = buildIngestRequest({ job: { name: opts.jobName ?? ci.jobName, matrix: opts.matrix, runner: ci.runner }, name: opts.name, summary, attestations, files });
|
|
5465
5465
|
const res = await sendReport(opts.prodgatorUrl, ci.provider, request, opts.audience, client);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prodgator/report",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.5",
|
|
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",
|