@dotcom-tool-kit/secret-squirrel

2.1.4 • Public • Published

@dotcom-tool-kit/secret-squirrel

Tool Kit plugin to run Secret Squirrel

This plugin will be installed as a dependency of the frontend-app, backend-heroku-app, and component plugins so you do not need to install it separately if you are using either of those plugins.

Installation & Usage

With Tool Kit already set up, install this plugin as a dev dependency:

npm install --save-dev @dotcom-tool-kit/secret-squirrel

And add it to your repo's .toolkitrc.yml:

plugins:
  - '@dotcom-tool-kit/secret-squirrel'

You will need a plugin that provides a hook to run the SecretSquirrel task. By default, the task runs on the git:precommit hook. One plugin that provides that hook is husky-npm; installing that alongside this plugin will enforce Secret Squirrel running on before every commit.

You can also configure Secret Squirrel to run on any other hook; for example, if you want to run it with npm run test, you could install the npm plugin and manually configure Secret Squirrel to run on npm's test:local hook:

plugins:
  - '@dotcom-tool-kit/secret-squirrel'
  - '@dotcom-tool-kit/npm'

hooks:
  'test:local': SecretSquirrel

Tasks

Task Description Default hook
SecretSquirrel run Secret Squirrel to check for secrets in your repo git:precommit

Readme

Keywords

none

Package Sidebar

Install

npm i @dotcom-tool-kit/secret-squirrel

Weekly Downloads

17

Version

2.1.4

License

ISC

Unpacked Size

4.63 kB

Total Files

9

Last publish

Collaborators

  • robertboulton
  • quarterto
  • the-ft