Skip to content

Commit

Permalink
fuzz: Ensure Go 1.18 for fuzz image
Browse files Browse the repository at this point in the history
- Upgrade fuzz container to Go 1.18.
- Upgrade worker to Go 1.18.
- The mod replace in tests/fuzz was pointing to the wrong controller.

Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
Paulo Gomes committed Aug 23, 2022
1 parent 09ef651 commit c2353a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cifuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Restore Go cache
uses: actions/cache@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions tests/fuzz/Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM golang:1.18 AS go

FROM gcr.io/oss-fuzz-base/base-builder-go

# ensures golang 1.18 to enable go native fuzzing.
COPY --from=go /usr/local/go /usr/local/

COPY ./ $GOPATH/src/github.com/fluxcd/source-controller/
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh

Expand Down
4 changes: 2 additions & 2 deletions tests/fuzz/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module github.com/fluxcd/source-controller/tests/fuzz

go 1.18

replace github.com/fluxcd/kustomize-controller/api => ../../api
replace github.com/fluxcd/source-controller/api => ../../api

replace github.com/fluxcd/kustomize-controller => ../../
replace github.com/fluxcd/source-controller => ../../

0 comments on commit c2353a7

Please sign in to comment.