Enable security alerts and automated security fixes sample
This repository contains sample scripts for Node and Bash which can be used to enable security alerts and automated security fixes 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 and enable automated security fixes 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
repoandread:orgpermissions - Copy
.env.exampleto.envand include your new personal access token in theGH_AUTH_TOKENvalue.
Calling this script to enable security alerts
- At the commandline, run
node enable-security-alerts-for-org.js myorgnamewheremyorgnameis your organization. This will enable security alerts on all repositories in your organization.
Calling this script to enable automated security fixes
You'll need to enable security alerts before you can enable automated security fixes
- At the commandline, run
node enable-automated-security-fixes-for-org.js myorgnamewheremyorgnameis your organization. This will enable security alerts on all repositories in your organization.
Shell script
Prerequisites
- Ensure that you have
bashshell available on your system. If you're running Windows, additional setup may be required. How to install Bash on Windows 10 - Generate a new personal access token with
repoandread:orgpermissions
Calling this script to enable security alerts
- At the commandline, run
./shell_script/enable_vulnerability_alerts_for_entire_org.sh myorgname accessTokenwheremyorgnameis your organization, andaccessTokenis the personal access token you generated earlier.
Calling this script to enable automated security fixes
You'll need to enable security alerts before you can enable automated security fixes
- At the commandline, run
./shell_script/enable_automated_security_fixes_for_entire_org.sh myorgname accessTokenwheremyorgnameis your organization, andaccessTokenis 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.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
