Skip to content

GitLab detector false positives for Docker arguments #4756

@acdha

Description

@acdha

The GitLab secrets detector seems to trigger on any use of MAVEN_SETTINGS_PROFILE in a Dockerfile.

TruffleHog Version

trufflehog 3.93.4

Trace Output

n/a

Expected Behavior

Trufflehog does not report a false-positive.

Actual Behavior

Found unverified result 🐷🔑❓
(Verification info cached)
Detector Type: Gitlab
Decoder Type: PLAIN
Raw result: MAVEN_SETTINGS_PROFILE
Rotation_guide: https://howtorotate.com/docs/tutorials/gitlab/
Version: 1
File: search/Dockerfile
Line: 12

Steps to Reproduce

Create a Dockerfile with the following contents:

FROM scratch
ARG GITLAB_ACCESS_TOKEN_TYPE=Private-Token
ARG GITLAB_ACCESS_TOKEN
ARG MAVEN_SETTINGS_PROFILE=test

Having either GITLAB_ACCESS_TOKEN or GITLAB_ACCESS_TOKEN_TYPE present in the file will cause the next line to be reported as a false-positive.

Environment

n/a

Additional Context

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions