Socket
Book a DemoInstallSign in
Socket

netlify-plugin-ghost-inspector

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-plugin-ghost-inspector

Netlify build plugin for triggering Ghost Inspector tests against deploy previews

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
77
35.09%
Maintainers
4
Weekly downloads
 
Created
Source

Ghost Inspector Netlify Plugin

The official Netlify plugin for Ghost Inspector.

Installation

Our official Netlify plugin is available from npm, you can install it with the following command:

npm install --save-dev netlify-plugin-ghost-inspector

Next, add the following to your netlify.toml (Netlify configuration file)

[[plugins]]
package = "netlify-plugin-ghost-inspector"

Netlify Environment Variables

This plugin will trigger a Ghost Inspector test suite against your Netlify deploy preview URL for every build started by a PR. To make this work, you will need to add a few environment variables in Netlify:

  • GHOST_INSPECTOR_API_KEY - Ghost Inspector API Key, which can be found in your account settings
  • GHOST_INSPECTOR_SUITE - Ghost Inspector suite ID. To find your suite ID, navigate to the suite you want to use and copy the ID in the URL (after /suites/).
  • GITHUB_API_TOKEN (optional) - GitHub Personal Access Token - only required if you want commit status updates on your PR. Without this, the plugin will still function normally, but you will have to access the Netlify build UI in order to see if your Ghost Inspector suite passed or failed.

Add the environment variables and their values to the Netlify Dashboard via: Site Settings > Build & deploy > Environment.

Thanks to Jacob Arriola for the initial code and inspiration to make this plugin work.

Keywords

ghost

FAQs

Package last updated on 29 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.