8000 GitHub - boringtools/git-alerts at v1.0.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

boringtools/git-alerts

Repository files navigation

GitAlerts

What problem does it solve?

GitHub repositories created under any organization can be controlled by the GitHub administrators. However any repository created under an organization's user account is not controllable unless the organisation has adopted the GitHub enterprise-managed user (EMU) model.

Any public repository under the organization's user account that was created accidentally or for testing purposes could leak secrets, internal information, code etc. GitAlerts helps you detect and monitor such cases

Example

Can be controlled by the administrator https://github.com/<org>/<org-repo-name>

Can't be controlled by the administrator https://github.com/<org-user>/<org-user-repo-name>

Setup

Setup GitHub personal access token (PAT) as the environment variable

export GITHUB_PAT=YOUR_GITHUB_PAT

Dependencies

go mod tidy

Usage

Scan GitHub repositories belonging to your organization users

go run . scan --org your-org-name

Monitor new public repositories being created by your organization users

go run . monitor --org your-org-name

Monitor new public repositories being created by your organization users with slack notification

go run . monitor --org your-org-name --slack-alert

Setup slack webhook token as the environment variable

export SLACK_HOOK=SLACK_WEBHOOK_URL

Scan and generate report with custom path

go run . scan --org your-org-name --report-path /your/file/path/

Scan with secrets detection using Trufflehog

Ensure trufflehog is installed in your machine

go run . detect --org your-org-name

Documentation

docs

Please feel to reach out for any feedback and suggestions

Star History

Star History Chart

About

Tool to detect and monitor GitHub org users' public repositories for secrets and sensitive files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0