Skip to content

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

@rgmz

Description

@rgmz
Contributor

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

Activity

tannerjones4075

tannerjones4075 commented on Apr 15, 2025

@tannerjones4075
Contributor

I have created a PR for the --exclude-path feature: #4057

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @rgmz@tannerjones4075

    Issue actions

      Add `--include-paths` and `--exclude-paths` flags for Docker scan · Issue #2216 · trufflesecurity/trufflehog