secrets

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secrets

type Secrets mg.Namespace

Secrets contains tasks related to checking for sensitive values using tools like Gitleaks.

func (Secrets) Detect

func (Secrets) Detect() error

🔐 Detect scans for secret violations with gitleaks without git consideration.

This outputs by default to `.artifacts/gitleaks.json` but can be overridden by setting `GITLEAK_ARTIFACT_PATH`.

The defaults for this scan with `--no-git` to focus on file content without history.

func (Secrets) Protect

func (Secrets) Protect() error

🔐 Protect scans the staged artifacts for violations.

This is useful in pre-commit checks.

This outputs by default to `.artifacts/gitleaks.json` but can be overridden by setting `GITLEAK_ARTIFACT_PATH`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL