Skip to content

Add --include-paths and --exclude-paths flags for Docker scan #2216

Closed
@rgmz

Description

@rgmz

Please review the Community Note before submitting

Description

It appears that the Docker source does not have flags for including or excluding paths. This is a useful feature to include.

https://github.com/trufflesecurity/trufflehog/blob/main/main.go#L86C70-L87

Preferred Solution

Add include/exclude flags for Docker, similar to how other sources work.

Additional Context

https://trufflehog-community.slack.com/archives/CK5PWLESK/p1702565959415379

References

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions