@bbc/exposure-scanning

0.1.0-alpha.1 • Public • Published

⛔️ This is an alpha component ⛔️

This component is currently tagged as alpha and is not suitable for production use.

exposure-scanning - Known Vulnerabilities Dependency Status peerDependencies Status GitHub license npm version PRs Welcome

This package provides a utility to scan and patch issues and pull requests for content that matches a given regular expression.

Installation

npm install @bbc/exposure-scanning --save

Usage

The script can be imported and executed like so:

// /scripts/scan-exposures/index.jsx
import scanExposures from '@bbc/exposure-scanning';

(async () => {
  await scanExposures();
})();

Then, this can be executed in the command line:

./scripts/scan-exposures psammead -pr 1234 "foo|bar"

The command line arguments are as follows:

  • repository (psammead in the example)
  • content type (-pr or -issue)
  • id (of the issue or pull request)
  • regex ("foo|bar" in the example)

Contributing

Psammead is completely open source. We are grateful for any contributions, whether they be new components, bug fixes or general improvements. Please see our primary contributing guide which can be found at the root of the Psammead respository.

Code of Conduct

We welcome feedback and help on this work. By participating in this project, you agree to abide by the code of conduct. Please take a moment to read it.

License

Psammead is Apache 2.0 licensed.

Package Sidebar

Install

npm i @bbc/exposure-scanning

Weekly Downloads

3

Version

0.1.0-alpha.1

License

Apache-2.0

Unpacked Size

34.1 kB

Total Files

15

Last publish

Collaborators

  • news-vj-bot
  • silver-jenkins
  • bbc-web-core
  • ibl-jenkins
  • iplayer-web-jenkins
  • sport-web-jenkins
  • bbcconnections
  • bbc-gnl-ci
  • bbc-morph
  • itv-ci-machine
  • audienceplatformdev
  • bbc-archivesearch-development-team
  • sounds-web-jenkins
  • rmsdev
  • bbc-voice-pipeline
  • weather-jenkins
  • newslabs-jenkins
  • api-management-jenkins
  • mdtbuild
  • bbc-online
  • cps-support
  • bbc-cd-jenkins
  • locator-deploy
  • bbc-isite
  • travel-jenkins
  • participation-jenkins
  • bbc-news-jenkins
  • bbcrd
  • ibl
  • iplayerradio-aws
  • media-playout-jenkins
  • partner-platform-jenkins
  • bbc-admin
  • gel-jenkins
  • pcs-amp-jenkins
  • education-jenkins
  • insyn-jenkins
  • kite-jenkins
  • bbcrd-artifactory
  • iplayer-pc-downloads-pipeline-bot