Skip to content

Commit

Permalink
Fixed grype sec scan
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Nov 27, 2024
1 parent 2bb4f29 commit 04011e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v4
name: Set up Go 1.x
with:
go-version: "1.21.9"
go-version: "1.22.7"
env:
GO111MODULE: off

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v4
name: Set up golang 1.21
name: Set up golang 1.22.7
with:
go-version: '1.21.9'
go-version: '1.22.7'
- name: Check out source code
uses: actions/checkout@v2
- name: Run Tests
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/platsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,3 @@ jobs:
## the defaults of root '.' for the path and 'Dockerfile' for the Dockerfile name.
## Additionally, if you have a Dockerfile you use as your BASE_IMG or you need to
## use '--build-arg', those can be define below as well.

with:
# dockerfile_path: './test'
# dockerfile_name: 'Dockerfile.main'
base_image_build: true
# base_dockerfile_path: './test'
base_dockerfile_name: 'Dockerfile.base'
build_arg: '--build-arg BASE_IMAGE="localbuild/baseimage:latest"'
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi8/go-toolset:1.21.11-8.1724662611 as builder
FROM registry.access.redhat.com/ubi8/go-toolset:1.22.7-5.1731464728 as builder
USER 0
ENV GOSUMDB=off

Expand Down Expand Up @@ -30,7 +30,7 @@ RUN CGO_ENABLED=1 GOOS=linux GO111MODULE=on go build -o manager main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1086
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1130
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /workspace/manifest.yaml .
Expand Down

0 comments on commit 04011e8

Please sign in to comment.