download golang
Some checks failed
Gosec Check / Gosec Check (push) Failing after 1m4s

This commit is contained in:
Shane C 2024-09-08 14:18:09 -04:00
parent 1e26732044
commit e01a930f46
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9
2 changed files with 3 additions and 5 deletions

View file

@ -8,10 +8,12 @@ RUN CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o build/goscan
FROM alpine:3.20
RUN apk --no-cache update && apk --no-cache upgrade && apk add curl
RUN apk --no-cache update && apk --no-cache upgrade && apk add wget curl
RUN wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz && tar -xf go1.23.1.linux-amd64.tar.gz -C /usr/local && rm -rf go1.23.1.linux-amd64.tar.gz
COPY --from=builder /app/build/goscan /goscan
COPY ./entrypoint.sh /entrypoint.sh
COPY --from=builder /app .
RUN chmod +x /goscan && chmod +x /entrypoint.sh

View file

@ -199,10 +199,6 @@ var rootCmd = &cobra.Command{
log.Fatalln(err)
}
if err := os.WriteFile("output.md", []byte(markdownOutputStr), 0644); err != nil {
log.Fatalln(err)
}
// This will trigger gosec
file, err := os.OpenFile("testing.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm)
if err != nil {