From the course: DevSecOps: Building a Secure Continuous Delivery Pipeline

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JavaScript security with Retire.js: Testing

JavaScript security with Retire.js: Testing

From the course: DevSecOps: Building a Secure Continuous Delivery Pipeline

Start my 1-month free trial

JavaScript security with Retire.js: Testing

- For testing, I'm just going to use the word cloud generator app that we used in an earlier movie, but really, any project with JavaScript in it will do. Okay, let me move into the directory. Let's run retire against the app by typing docker space run, and I'm giving it that dash dash rm flag to let it know to remove the container when it's done, and then I'm also mounting a volume, the present working directory using dollar pwd colon slash app, so I'm giving it the app directory inside the container. And then I'm telling it to call the retire container, and I'm asking it to be verbose when it does it. This runs the container we just made, and mounts the local path, the present working directory, to the container, under the app directory. Then it runs retire dot js inside of it. I passed the dash v for verbosity. Okay, great, it ran and it didn't find any problems. We can tell by running echo dollar question mark, which gives the exit status, zero is good here. Okay, let me clear my…

Contents