application-pipeline-update

This commit is contained in:
David Adewole 2021-07-12 11:24:33 +01:00
parent ed5ad4e6b8
commit b4bfc0d3c2
3 changed files with 2196 additions and 1441 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,12 +6,14 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node --max-old-space-size=4096 --max-http-header-size=80000 index.js",
"dev": "nodemon --inspect=0.0.0.0 --max-http-header-size=80000 index.js"
"dev": "node --inspect=0.0.0.0 --max-http-header-size=80000 index.js",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true"
},
"author": "David Adewole",
"license": "MIT",
"devDependencies": {
"nodemon": "^2.0.7"
"depcheck": "^1.4.2"
},
"dependencies": {
"axios": "^0.21.1",

View File

@ -0,0 +1,26 @@
## application-scanner
audit_application-scanner:
stage: BuildAndTest
allow_failure: true
script:
- chmod +x ./ci/scripts/checkhash.sh
- export next_stage=`./ci/scripts/checkhash.sh audit_application-scanner application-scanner`
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
- sudo apt-get update
- sudo apt-get install -y curl gcc
- sudo apt-get install -y build-essential
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
- sudo apt-get install -y nodejs
- cd application-scanner
- npm ci
- npm run audit
- npm run dep-check
- cd ..
- chmod +x ./ci/scripts/storehash.sh
- ./ci/scripts/storehash.sh audit_application-scanner application-scanner
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh
only:
refs:
- master
- release