Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d2dc5e965 | |||
| 60b9d28b53 | |||
| 9edf4a088d | |||
| a22704fb8e | |||
| 8eb1cfffdb | |||
| 94722d3daa | |||
| f0db9f76e2 | |||
| 7798005fd5 | |||
| 32555f5e87 | |||
| f3071aa46a | |||
| ea2de122be | |||
| 83e22d8b16 |
+1
-1
@@ -9,7 +9,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o trufflehog .
|
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o trufflehog .
|
||||||
|
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
RUN apk add --no-cache git ca-certificates \
|
RUN apk add --no-cache bash git ca-certificates \
|
||||||
&& rm -rf /var/cache/apk/* && \
|
&& rm -rf /var/cache/apk/* && \
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
|
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
|
|
||||||
RUN apk add --no-cache git ca-certificates \
|
RUN apk add --no-cache bash git ca-certificates \
|
||||||
&& rm -rf /var/cache/apk/* && \
|
&& rm -rf /var/cache/apk/* && \
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
WORKDIR /usr/bin/
|
WORKDIR /usr/bin/
|
||||||
|
|||||||
+5
-4
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env ash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# `$*` expands the `args` supplied in an `array` individually
|
# Parse the last argument into an array of extra_args.
|
||||||
# or splits `args` in a string separated by whitespace.
|
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
|
||||||
/usr/bin/trufflehog $*
|
|
||||||
|
/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}"
|
||||||
Reference in New Issue
Block a user