Skip to content

Commit c2353a7

Browse files
author
Paulo Gomes
committed
fuzz: Ensure Go 1.18 for fuzz image
- 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]>
1 parent 09ef651 commit c2353a7

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/cifuzz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v3
20+
- name: Setup Go
21+
uses: actions/setup-go@v3
22+
with:
23+
go-version: 1.18.x
2024
- name: Restore Go cache
2125
uses: actions/cache@v3
2226
with:

tests/fuzz/Dockerfile.builder

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
FROM golang:1.18 AS go
2+
13
FROM gcr.io/oss-fuzz-base/base-builder-go
24

5+
# ensures golang 1.18 to enable go native fuzzing.
6+
COPY --from=go /usr/local/go /usr/local/
7+
38
COPY ./ $GOPATH/src/github.com/fluxcd/source-controller/
49
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh
510

tests/fuzz/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module github.com/fluxcd/source-controller/tests/fuzz
22

33
go 1.18
44

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

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

0 commit comments

Comments
 (0)