mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-25 06:17:50 +00:00
dadd0289fa
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms was added to the latest versions of the golang-* tasks. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com> |
||
---|---|---|
.. | ||
tests | ||
golang-fuzz.yaml | ||
README.md |
Golang Fuzz
This task is a Golang task to fuzz Go projects
Install the task
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/golang-test/0.1/golang-fuzz.yaml
Parameters
- package: base package to fuzz test
- target: fuzz targets
- context: path to the directory to use as context (default: .)
- version: golang version to use (default: latest)
- flags: flags to use for
gotip test -fuzz=FuzzFoo
command (default: "") - GOOS: operating system target (default: linux)
- GOARCH: architecture target (default: amd64)
- GO111MODULE: value of module support (default: auto)
- GOCACHE: value for go caching path (default: "")
- GOMODCACHE: value for go module caching path (default: "")
Workspaces
- source: A Workspace containing the source to fuzz.
Platforms
The Task can be run on linux/amd64
, linux/s390x
, and linux/ppc64le
platforms.
Specify value for GOARCH
parameter according to the desired target architecture.
Usage
This TaskRun runs the Task fuzz the source code on
tektoncd/pipeline
.
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: fuzz-my-code
spec:
taskRef:
name: golang-fuzz
workspaces:
- name: source
persistentVolumeClaim:
claimName: my-source
params:
- name: package
value: github.com/tektoncd/pipeline
- name: target
value: FuzzFoo