diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d931318..9a4467e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,16 +26,28 @@ mirror: - docker - notpriv -audit: +auditProductionDependencies: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci + stage: security + script: + - npmci npm prepare + - npmci command npm install --production --ignore-scripts + - npmci command npm config set registry https://registry.npmjs.org + - npmci command npm audit --audit-level=high --only=prod --production + tags: + - docker + +auditDevDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - npmci npm prepare - npmci command npm install --ignore-scripts - npmci command npm config set registry https://registry.npmjs.org - - npmci command npm audit --audit-level=high + - npmci command npm audit --audit-level=high --only=dev tags: - docker + allow_failure: true # ==================== # test stage diff --git a/package.json b/package.json index 0cd1694..3d03cad 100644 --- a/package.json +++ b/package.json @@ -53,4 +53,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/ts/dnsly.plugins.ts b/ts/dnsly.plugins.ts index e20841c..e99876e 100644 --- a/ts/dnsly.plugins.ts +++ b/ts/dnsly.plugins.ts @@ -13,4 +13,3 @@ export { smartdelay, smartpromise, smartrequest }; import * as tsclass from '@tsclass/tsclass'; export { tsclass }; -