Skip to content

Commit

Permalink
Remove '--chown' from COPY instruction, as user no longer exists (#549)
Browse files Browse the repository at this point in the history
* Remove 'chown'

The user 'gitleaks' was removed in this commit upstream:
gitleaks/gitleaks@ac4b514

When building this check now, it will fail with the error:
```
unable to convert uid/gid chown string to host mapping
```
Removing this argument pointing to a user that does not exists should fix the issue.

* Pin version to v8.18.2

To avoid random breakage in the future, let's pin the version of upstream version
  • Loading branch information
kozmic authored Feb 5, 2024
1 parent 0a3983a commit 274814b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/vulcan-gitleaks/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2019 Adevinta

FROM zricethezav/gitleaks
FROM zricethezav/gitleaks:v8.18.2

# Override base label with 🔑 not supported by artifactory.
LABEL org.opencontainers.image.description="Protect and discover secrets using Gitleaks"
Expand All @@ -11,6 +11,6 @@ ENTRYPOINT ["/usr/bin/env"]

# Install check
ARG TARGETOS TARGETARCH
COPY --chown=gitleaks ${TARGETOS}/${TARGETARCH}/vulcan-gitleaks /
COPY ${TARGETOS}/${TARGETARCH}/vulcan-gitleaks /

CMD ["/vulcan-gitleaks"]

0 comments on commit 274814b

Please sign in to comment.