Skip to content
This repository contains a sample script which can be used to enable security vulnerability alerts in all of the repositories in a given organization.
Branch: master
Clone or download
jhutchings1 Merge pull request #3 from edhgoose/patch-1
Switch to public version of tokens
Latest commit fe92614 May 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
shell_script Switch to public version of tokens May 1, 2019
.gitignore Created sample node script which enables vulnerability alerts Apr 24, 2019
CODE-OF-CONDUCT.md Add repository health files. Apr 29, 2019
CONTRIBUTING.md Add repository health files. Apr 29, 2019
LICENSE
README.md Update readme with Bash instructions. Apr 30, 2019
config.json Created sample node script which enables vulnerability alerts Apr 24, 2019
enable-security-alerts-for-org.js
package-lock.json
package.json Addressing code review feedback. Apr 29, 2019

README.md

enable-security-alerts-sample

This repository contains sample scripts for Node and Bash which can be used to enable security vulnerability alerts in all of the repositories in a given organization.

This project is a being provided as a sample only which illustrates how to enable vulnerability alerts in all repositories in a given organization.

Node script

Prerequisites

  • Install Node
  • Clone this repository
  • At the commandline, run npm install
  • Generate a new personal access token with repo and read:org permissions
  • Update config.json and include your new personal access token in the accessToken value.

Calling this script

  • At the commandline, run node index.js myorgname where myorgname is your organization. This will enable security vulnerability alerts on all private repositories in your organization.

Shell script

Prerequisites

Calling this script

  • At the commandline, run ./shell_script/enable_vulnerability_alerts.sh myorgname accessToken where myorgname is your organization, and accessToken is the personal access token you generated earlier.

Contributing

If you'd like to contribute to this sample with fixes, or support for other platforms, please follow the contribution guidelines.

License

This project is available under the MIT license.

You can’t perform that action at this time.