Dagger
Search

gitleaks

This module provides a function to detect secrets in code using gitleaks

Installation

dagger install github.com/fluent-ci-templates/gitleaks-pipeline@v0.2.0

Entrypoint

Return Type
Gitleaks
Example
dagger -m github.com/fluent-ci-templates/gitleaks-pipeline@ccb1381a7802b93e45e0bf03d19dabccc08b5495 call \
func (m *myModule) example() *Gitleaks  {
	return dag.
			Gitleaks()
}
@function
def example() -> dag.Gitleaks:
	return (
		dag.gitleaks()
	)
@func()
example(): Gitleaks {
	return dag
		.gitleaks()
}

Types

Gitleaks 🔗

detect() 🔗

Detect secrets in code

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/fluent-ci-templates/gitleaks-pipeline@ccb1381a7802b93e45e0bf03d19dabccc08b5495 call \
 detect
func (m *myModule) example() *File  {
	return dag.
			Gitleaks().
			Detect()
}
@function
def example() -> dagger.File:
	return (
		dag.gitleaks()
		.detect()
	)
@func()
example(): File {
	return dag
		.gitleaks()
		.detect()
}