Giter VIP home page Giter VIP logo

enable-security-alerts-sample's Introduction

Enable Dependabot alerts and Dependabot security updates 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 being provided as a sample only which illustrates how to enable Dependabot alerts and enable Dependabot security updates in all repositories in a given organization.

Node script

Note: This node script is also available integrated into the GitHub Administration Tool (ghad).

Prerequisites

  • Install Node
  • Clone this repository
  • At the commandline, run npm install
  • Generate a new personal access token with repo and read:org permissions
  • Copy .env.example to .env and include your new personal access token in the GH_AUTH_TOKEN value.

Calling this script to enable Dependabot alerts

  • At the commandline, run node enable-security-alerts-for-org.js myorgname where myorgname is your organization. This will enable Dependabot alerts on all repositories in your organization.

Calling this script to check for enabled Dependabot alerts

  • At the commandline, run node enable-security-alerts-for-org-check.js myorgname where myorgname is your organization. This will enable Dependabot alerts on all repositories in your organization.

Calling this script to enable Dependabot security updates

You'll need to enable security alerts before you can Dependabot security updates

  • At the commandline, run node enable-automated-security-fixes-for-org.js myorgname where myorgname is your organization. This will enable Dependabot security updates on all repositories in your organization.

Shell script

Prerequisites

Calling this script to enable Dependabot alerts

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

Calling this script to enable Dependabot security updates

You'll need to enable Dependabot alerts before you can enable Dependabot security updates

  • At the commandline, run ./shell_script/enable_automated_security_fixes_for_entire_org.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.

enable-security-alerts-sample's People

Contributors

jhutchings1 avatar stoe avatar feelepxyz avatar afeld avatar gitatb avatar edhgoose avatar jimmed avatar leontebbens avatar mlinksva avatar rschultheis avatar rubene avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.