File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,15 @@ jobs:
21
21
uses : actions/setup-go@v3
22
22
with :
23
23
go-version : 1.18.x
24
+ - id : go-env
25
+ run : |
26
+ echo "::set-output name=go-mod-cache::$(go env GOMODCACHE)"
24
27
- name : Restore Go cache
25
28
uses : actions/cache@v3
26
29
with :
27
- path : /home/runner/work/_temp/_github_home/go/pkg/ mod
30
+ path : ${{ steps.go-env.outputs.go- mod-cache }}
28
31
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29
32
restore-keys : |
30
- ${{ runner.os }}-go-
33
+ ${{ runner.os }}-go
31
34
- name : Smoke test Fuzzers
32
35
run : make fuzz-smoketest
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ fuzz-build: $(LIBGIT2)
234
234
rm -rf $(BUILD_DIR ) /fuzz/
235
235
mkdir -p $(BUILD_DIR ) /fuzz/out/
236
236
237
- docker build . --tag local-fuzzing:latest -f tests/fuzz/Dockerfile.builder
237
+ docker build . --pull -- tag local-fuzzing:latest -f tests/fuzz/Dockerfile.builder
238
238
docker run --rm \
239
239
-e FUZZING_LANGUAGE=go -e SANITIZER=address \
240
240
-e CIFUZZ_DEBUG='True' -e OSS_FUZZ_PROJECT_NAME=fluxcd \
@@ -244,6 +244,7 @@ fuzz-build: $(LIBGIT2)
244
244
fuzz-smoketest : fuzz-build
245
245
docker run --rm \
246
246
-v " $( BUILD_DIR) /fuzz/out" :/out \
247
+ -v " $( shell go env GOMODCACHE) :/root/go/pkg/mod" \
247
248
-v " $( shell pwd) /tests/fuzz/oss_fuzz_run.sh" :/runner.sh \
248
249
local-fuzzing:latest \
249
250
bash -c " /runner.sh"
Original file line number Diff line number Diff line change 1
- FROM golang :1.18 AS go
2
-
3
- FROM gcr . io /oss -fuzz -base /base -builder -go
4
-
5
- # ensures golang 1.18 to enable go native fuzzing.
6
- COPY --from = go /usr /local /go /usr /local /
1
+ FROM gcr . io /oss -fuzz -base /base -builder -go -codeintelligencetesting
7
2
8
3
COPY . / $GOPATH/src /github . com /fluxcd /source -controller /
9
4
COPY . /tests /fuzz /oss_fuzz_build . sh $SRC/build . sh
You can’t perform that action at this time.
0 commit comments