diff --git a/app.js b/app.js index 541532ebe..8f907da69 100644 --- a/app.js +++ b/app.js @@ -2,7 +2,6 @@ const express = require('express'); const app = express(); const port = 8080; -app.get('/', (req, res) => res.send('Hello World!')); - +app.get('/', (req, res) => res.send('Welcome to our new training class on Code Security :)')); app.listen(port); console.log(`App running on http://localhost:${port}`); diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 000000000..b0131da99 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,21 @@ +version: 0.2 + +#env: +# secrets-manager: +# SPECTRAL_DSN: aarn:aws:secretsmanager:us-west-2:236713641735:secret:SPECTRAL-PrZkpH:SPECTRAL_DSN + +phases: + build: + commands: + - echo Building the project... + - npm i --save + post_build: + commands: + - curl -L "https://spectral-eu.checkpoint.com/latest/x/sh?dsn=$SPECTRAL_DSN"| sh + - $HOME/.spectral/spectral scan --ok --include-tags base,audit +artifacts: + files: + - "**/*" +env: + variables: + SPECTRAL_DSN: https://spu-443078044e9648dd9feb6a8280a1fef9@spectral-eu.checkpoint.com \ No newline at end of file