- /security/npm.yml - /security/composer.yml - /security/security.yml - /test/test.yml - /build/composer.yml - /build/npm.yml - /build/docker.yml - /build/build.yml
16 lines
No EOL
490 B
YAML
16 lines
No EOL
490 B
YAML
npm-security:
|
|
stage: security
|
|
image: node:17.9.1
|
|
before_script:
|
|
- npm install --location=global audit-ci@^6
|
|
script:
|
|
- audit-ci -p npm -o json > npm-security-checker-report.json
|
|
artifacts:
|
|
when: on_failure
|
|
expose_as: 'npm-security-checker'
|
|
paths:
|
|
- npm-security-checker-report.json
|
|
allow_failure: true
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
- if: $CI_COMMIT_BRANCH == "develop" |