Compare commits

...

2 commits

Author SHA1 Message Date
26a7d7a72a
update gosec action
All checks were successful
GoSec Scan / Gosec Check (push) Successful in 37s
2024-09-11 20:03:49 -04:00
41858d6c59
actually make the container multi-arch 2024-09-11 20:02:44 -04:00
2 changed files with 1 additions and 7 deletions

View file

@ -13,9 +13,5 @@ jobs:
steps:
- name: Checkout
uses: https://git.shadowhosting.xyz/actions/checkout@v4
- uses: https://git.shadowhosting.xyz/actions/setup-go@v5
with:
go-version: '1.22'
- run: go mod download
- name: Run Gosec Security Scanner
uses: https://git.shadowhosting.xyz/actions/goscan@main

View file

@ -8,9 +8,7 @@ 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 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 /usr/local/go /usr/local/go
COPY --from=builder /app/build/goscan /goscan
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /goscan && chmod +x /entrypoint.sh