skanner

1.0.0 • Public • Published
███████ ██   ██  █████  ███    ██ ███    ██ ███████ ██████  
██      ██  ██  ██   ██ ████   ██ ████   ██ ██      ██   ██ 
███████ █████   ███████ ██ ██  ██ ██ ██  ██ █████   ██████  
     ██ ██  ██  ██   ██ ██  ██ ██ ██  ██ ██ ██      ██   ██ 
███████ ██   ██ ██   ██ ██   ████ ██   ████ ███████ ██   ██

skanner

A wrapper for source code scanners (Snyk)

Requirements

  • Snyk CLI v1.1194.0 or above (https://github.com/snyk/cli)
  • API token from a service or named Snyk accounts. Use a token from service account for CI or for any automation processes and a token from a named account for local scans.
  • Snyk org ID, the scan results will be sent to the Snyk org with this ID
  • NodeJs minimum version: 18.17.0

Installation

  1. Clone the repo
git clone git@github.com:woolworthslimited/skanner.git
  1. Check the version of node, the minimum version to run skanner is 18.17.0
node -v
  1. From the folder in the recenlty clonned repo, execute these commands:
npm i
npm i -g .
  1. Test it by executing this command:
skanner

You should get a result like the one below:

image

Usage

  1. From a terminal, move to the folder where the code you want to scan is stored.
  2. If you haven't authenticated your Snyk CLI, execute skanner auth <your-snyk-api-token> or snyk auth <your-snyk-api-token>
  3. Execute skanner code to trigger a scan with Snyk Code or skanner packs to trigger a scan with Snyk Open Source.

Contact the AppSec Team for any quesions or issues: appsec@woolworths.com.au

Package Sidebar

Install

npm i skanner

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0-or-later

Unpacked Size

47.3 kB

Total Files

9

Last publish

Collaborators

  • pabloatwoolies