8000 GitHub - yuhattor/dependabot-alert-enabler: Sample code to enable Dependabot Alerts for all repository
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sample code to enable Dependabot Alerts for all repository

Notifications You must be signed in to change notification settings

yuhattor/dependabot-alert-enabler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GitHub Dependabot Alert Enabler

A shell script to enable vulnerability alerts across multiple repositories in GitHub organizations or enterprises.

Prerequisites

  • GitHub CLI installed and authenticated
  • jq command-line JSON processor
  • Appropriate GitHub permissions to enable security features

Usage

./main.sh <target_name> <scope>

Parameters

  • target_name: (Required) The name of the organization or enterprise
  • scope: (Optional) Either "org" or "enterprise". Defaults to "org"

Examples

Enable vulnerability alerts for a single organization:

./main.sh my-organization org

Enable vulnerability alerts for all organizations in an enterprise:

./main.sh my-enterprise enterprise

Features

  • Supports both organization and enterprise-level operations
  • Handles pagination for large organizations/enterprises
  • Filters out archived and disabled repositories
  • Removes duplicate repositories
  • Provides error handling for API failures
  • Cleans up temporary files automatically

API Operations

The script performs the following GitHub API operations:

  1. Fetches organizations (for enterprise scope)
  2. Retrieves active repositories for each organization
  3. Enables vulnerability alerts for each repository

Error Handling

  • Validates input parameters
  • Reports API errors during vulnerability alert enablement
  • Provides descriptive error messages

Limitations

  • Requires GitHub CLI authentication
  • Processes up to 100 items per page (GitHub API limitation)
  • Temporary files (orgs.tmp and repos.tmp) are created during execution

License

This project is available under the MIT License.

About

Sample code to enable Dependabot Alerts for all repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0