| `build-args` / `NODE_BUILD_ARGS` | npm [run script](https://docs.npmjs.com/cli/v8/commands/npm-run-script) arguments <br/> yarn [run script](https://classic.yarnpkg.com/en/docs/cli/run) arguments <br/> pnpm [run script](https://pnpm.io/cli/run) arguments <br/>⚠ default value should be overridden for `pnpm` as `--prod` is not a valid option. | `run build --prod` |
| `$NODE_PROJECT_DIR/reports/npm-audit.native.json` | [JSON](https://docs.npmjs.com/cli/v9/commands/npm-audit#json) | [DefectDojo integration](https://documentation.defectdojo.com/integrations/parsers/#npm-audit)<br/>_This report is generated only if DefectDojo template is detected, if needed, you can force it with `$DEFECTDOJO_NPMAUDIT_REPORTS`_ |
| `node-audit-jobs-tags` / `NODE_AUDIT_JOB_TAGS` | Tags to be used for selecting runners for the job | [] |
### `node-outdated` job
...
...
@@ -359,6 +362,7 @@ It is bound to the `test` stage.
| `node-outdated-job-tags` / `NODE_OUTDATED_JOB_TAGS` | Tags to be used for selecting runners for the job | [] |
The job generates an outdated report that you will find here: `NODE_PROJECT_DIR/reports/npm-outdated-report.json`.
...
...
@@ -376,6 +380,7 @@ It is bound to the `test` stage, and uses the following variables:
| `semgrep-rules` / `NODE_SEMGREP_RULES` | Space-separated list of [Semgrep rules](https://semgrep.dev/docs/running-rules).<br/>Can be both local YAML files or remote rules from the [Semgrep Registry](https://semgrep.dev/explore) (denoted by the `p/` prefix). | `p/javascript p/eslint p/gitlab-eslint` |
| `semgrep-registry-base-url` / `NODE_SEMGREP_REGISTRY_BASE_URL` | The Semgrep Registry base URL that is used to download the rules. No trailing slash. | `https://semgrep.dev/c` |
"description":"Extra options to install project dependencies (either [`npm ci`](https://docs.npmjs.com/cli/ci.html/), [`yarn install`](https://yarnpkg.com/cli/install) or [`pnpm install`](https://pnpm.io/cli/install))",
"advanced":true
},
{
"name":"NODE_BUILD_JOB_TAGS",
"description":"Tags to be used for selecting runners for the job",
"type":"array",
"default":[],
"advanced":true
}
],
"features":[
...
...
@@ -85,6 +92,13 @@
"description":"npm [run script](https://docs.npmjs.com/cli/v8/commands/npm-run-script) arguments to execute the lint analysis - yarn [run script](https://classic.yarnpkg.com/en/docs/cli/run) arguments to execute the lint analysis - pnpm [run script](https://pnpm.io/cli/run) arguments to execute the lint analysis",
"default":"run lint",
"advanced":true
},
{
"name":"NODE_LINT_JOB_TAGS",
"description":"Tags to be used for selecting runners for the job",
description:npm [publish](https://docs.npmjs.com/cli/v8/commands/npm-publish) extra arguments - yarn [publish](https://classic.yarnpkg.com/lang/en/docs/cli/publish/) extra arguments - pnpm [publish](https://pnpm.io/cli/publish) extra arguments
default:''
node-build-job-tags:
description:tags to filter applicable runners for node-build job
type:array
default:[]
node-lint-job-tags:
description:tags to filter applicable runners for node-lint job
type:array
default:[]
node-audit-job-tags:
description:tags to filter applicable runners for node-audit job
type:array
default:[]
node-outdated-job-tags:
description:tags to filter applicable runners for node-outdated job
type:array
default:[]
node-sbom-job-tags:
description:tags to filter applicable runners for node-sbom job
type:array
default:[]
node-publish-job-tags:
description:tags to filter applicable runners for node-publish job
type:array
default:[]
---
workflow:
rules:
...
...
@@ -736,6 +761,7 @@ node-audit:
-if:'$NODE_AUDIT_DISABLED=="true"'
when:never
-!reference[.test-policy,rules]
tags:$[[ inputs.node-audit-job-tags ]]
# outdated
node-outdated:
...
...
@@ -765,6 +791,7 @@ node-outdated:
# on non-production, non-integration branches: manual & non-blocking