Skip to content

Commit bfabf0d

Browse files
J12934Reet00
authored andcommitted
Surround variables with quotes
Not sure why sonar needed to loose its shit over this... Signed-off-by: Jannik Hollenbach <[email protected]>
1 parent ed6351b commit bfabf0d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

auto-discovery/cloud-aws/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ COPY pkg/ pkg/
1919

2020
# Build
2121
ARG TARGETOS TARGETARCH
22-
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -o service cmd/service/main.go
22+
RUN GOOS="$TARGETOS" GOARCH="$TARGETARCH" CGO_ENABLED=0 go build -a -o service cmd/service/main.go
2323

2424
# Use distroless as minimal base image to package the service binary
2525
# Refer to https://github.com/GoogleContainerTools/distroless for more details

auto-discovery/kubernetes/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY pkg/ pkg/
2020

2121
# Build
2222
ARG TARGETOS TARGETARCH
23-
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -o manager main.go
23+
RUN GOOS="$TARGETOS" GOARCH="$TARGETARCH" CGO_ENABLED=0 go build -a -o manager main.go
2424

2525
# Use distroless as minimal base image to package the manager binary
2626
# Refer to https://github.com/GoogleContainerTools/distroless for more details

lurker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ COPY main.go main.go
1818

1919
# Build
2020
ARG TARGETOS TARGETARCH
21-
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -o lurker main.go
21+
RUN GOOS="$TARGETOS" GOARCH="$TARGETARCH" CGO_ENABLED=0 go build -a -o lurker main.go
2222

2323
# Use distroless as minimal base image to package the manager binary
2424
# Refer to https://github.com/GoogleContainerTools/distroless for more details

operator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ COPY utils/ utils/
2222

2323
# Build
2424
ARG TARGETOS TARGETARCH
25-
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -o manager main.go
25+
RUN GOOS="$TARGETOS" GOARCH="$TARGETARCH" CGO_ENABLED=0 go build -a -o manager main.go
2626

2727
# Use distroless as minimal base image to package the manager binary
2828
# Refer to https://github.com/GoogleContainerTools/distroless for more details

scanners/ffuf/scanner/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
66
ARG scannerVersion
7-
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go install github.com/ffuf/ffuf/v2@$scannerVersion
7+
RUN GOOS="$TARGETOS" GOARCH="$TARGETARCH" CGO_ENABLED=0 go install github.com/ffuf/ffuf/v2@$scannerVersion
88

99
RUN mkdir -p /home/ffuf/.config/ffuf
1010
RUN mkdir -p /home/ffuf/.config/ffuf/scraper

0 commit comments

Comments
 (0)