You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: trivy.go
    path of file: ./repos/validkube/backend/api/trivy
    
    the code of the file until where you have to start completion: package trivy

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"regexp"

	"github.com/gin-gonic/gin"
	"github.com/komodorio/validkube/backend/api/utils"
	"github.com/komodorio/validkube/backend/internal/routing"
	"sigs.k8s.io/yaml"
)

type ScanAction string

const (
	PathConfig                     = "/trivy/config"
	PathVulnerability              = "/trivy/vulnerability"
	PathSBOM                       = "/trivy/sbom"
	Method                         = routing.POST
	ConfigAction        ScanAction = "config"
	Vul
    
func processTrivyRequest(c *gin.Context, action ScanAction) {
	body, err := ioutil.ReadAll(c.Request.Body)
	if err != nil {
		fmt.Printf("Error has with reading request body: %v", err)
		c.JSON(http.StatusOK, gin.H{"data": "", "err": err.Error()})
		return
	}
	bodyAsMap, err := utils.JsonToMap(body)
	if err != nil {
		c.JSON(http.StatusOK, gin.H{"data": "", "err": err.Error()})
		return
	}
	yamlAsInterface := bodyAsMap["yaml"]
	kubevalOutput, err := trivyWrapper(utils.InterfaceToBytes(yamlAsInterface), action)
	if err != nil {
		c.JSON(http.StatusOK, gin.H{"data": "", "err": err.Error()})
		return
	}
	c.JSON(http.StatusOK, gin.H{"data": string(kubevalOutput), "err": nil})
}