Skip to content

Commit

Permalink
Merge pull request #38 from JenswBE/run-govulncheck-inside-build
Browse files Browse the repository at this point in the history
Run govulncheck inside build
  • Loading branch information
JenswBE authored Oct 11, 2022
2 parents 3b0e509 + 6767ed4 commit c50e085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ jobs:
go install github.com/nishanths/exhaustive/...@latest
exhaustive ./...
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: Start E2E services
working-directory: e2e
run: |
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM docker.io/library/golang:1.18 AS builder

WORKDIR /src/
COPY . .
RUN go install golang.org/x/vuln/cmd/govulncheck@latest
RUN govulncheck ./...
RUN CGO_ENABLED=0 go build -ldflags='-extldflags=-static' -o /bin/delic ./cmd

FROM docker.io/library/alpine:latest
Expand Down

0 comments on commit c50e085

Please sign in to comment.