Skip to main content

Detects secrets that are defined in the repository and are not used in Github Actions

Project description

detect-gh-actions-unused-secrets

Detects secrets that are defined in the repository and are not used in Github Actions.

What it does:

  • Get repository secrets using Github Actions API
  • Clone the repository
  • Search through the Github Actions related files (.github/workflows/*.yaml and .github/workflows/*.yml) and try to find usages of each secret
  • Report those secrets which are not found

Prerequisites

Example

pip install detect-gh-actions-unused-secrets
detect-gh-actions-unused-secrets <token> <owner>/<repo1> <owner/repo2>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

detect_gh_actions_unused_secrets-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

detect_gh_actions_unused_secrets-0.1.1-py2.py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page