@prodgator/report 0.0.0 → 1.0.1

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -0
  3. package/dist/cli.js +5405 -0
  4. package/package.json +33 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SCRT-HQ
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @prodgator/report
2
+
3
+ Shared report client for the Prodgator GitHub action, GitLab component and Bitbucket pipe. User docs: the [Run reports guide](https://docs.prodgator.io/pipelines/run-reports).
4
+
5
+ ## Command line
6
+
7
+ `prodgator-report` runs in GitLab CI or Bitbucket Pipelines, reads the job's OIDC token, and sends a report to Prodgator. On GitHub Actions, use the `prodgator/prodgator-action` action instead.
8
+
9
+ Options can be set as a CLI flag, a `PRODGATOR_`-prefixed environment variable, or (only with `--pipe`) an unprefixed pipe variable. A flag wins over a pipe variable, which wins over the `PRODGATOR_` variable, which wins over the default.
10
+
11
+ | Option | CLI flag | Env (GitLab, any shell) | Pipe variable |
12
+ |---|---|---|---|
13
+ | prodgatorUrl | `--prodgator-url` | `PRODGATOR_URL` | `PRODGATOR_URL` |
14
+ | audience | `--audience` | `PRODGATOR_AUDIENCE` | `AUDIENCE` |
15
+ | summary | `--summary` | `PRODGATOR_SUMMARY` | `SUMMARY` |
16
+ | summaryFile | `--summary-file` | `PRODGATOR_SUMMARY_FILE` | `SUMMARY_FILE` |
17
+ | name | `--name` | `PRODGATOR_NAME` | `NAME` |
18
+ | jobName | `--job-name` | `PRODGATOR_JOB_NAME` | (none: Bitbucket uses the step name) |
19
+ | matrix | `--matrix` | `PRODGATOR_MATRIX` | `MATRIX` |
20
+ | junit | `--junit` | `PRODGATOR_JUNIT` | `JUNIT` |
21
+ | artifacts | `--artifacts` | `PRODGATOR_ARTIFACTS` | `ARTIFACTS` |
22
+ | attestations | `--attestations` | `PRODGATOR_ATTESTATIONS` | `ATTESTATIONS` |
23
+ | redactVariables | `--redact-variables` | `PRODGATOR_REDACT_VARIABLES` | `REDACT_VARIABLES` |
24
+ | failOnError | `--fail-on-error` | `PRODGATOR_FAIL_ON_ERROR` | `FAIL_ON_ERROR` |
25
+ | tokenVariable | `--token-variable` | `PRODGATOR_TOKEN_VARIABLE` | (none) |
26
+
27
+ GitLab CI example, reporting from its own short job:
28
+
29
+ ```yaml
30
+ unit-tests:
31
+ image: node:22
32
+ id_tokens:
33
+ PRODGATOR_ID_TOKEN:
34
+ aud: https://api.prodgator.io
35
+ script:
36
+ - npm ci && npm test
37
+ after_script:
38
+ - npx --yes @prodgator/report@1 --junit 'test-results/*.xml'
39
+ ```