Skip to content

Package a Go application for Veracode Static Analysis

License

Notifications You must be signed in to change notification settings

relaxnow/vcgopkg

Repository files navigation

vcgopkg

DEPRECATED, PLEASE USE THE OFFICIAL PACKAGER AT: https://docs.veracode.com/r/About_auto_packaging

Unofficial Community Project to help package a Go application for Veracode Static Analysis

Linux & OS X

Download

On Linux with go get:

export GOPATH=`go env GOPATH` &&
export PATH="$GOPATH/bin:$PATH" &&
go install github.com/relaxnow/vcgopkg@latest

Usage

Package the current working directory:

~/Projects/my-go-project# vcgopkg

OR package a directory:

~/# vcgopkg Projects/my-go-project

OR package a main.go file

~/# vcgopkg Projects/my-go-project/cmd/main.go

vcgopkg will then look for all main funcs and produce a .zip file for each, for example:

~/Projects/my-go-project/veracode/my-go-project--cmd--20210909010101.zip

All .zip files from veracode can then be uploaded to Veracode for Static Analysis.

Windows

Download

Download vcgopkg-windows-amd64.

Usage

Drop the exe inside the go project and double click.

OR package the current working directory with the command line:

C:\my-go-project> vcgopkg

OR package a directory:

C:\> vcgopkg my-go-project

OR package a main.go file

C:\my-go-project> vcgopkg my-go-project\cmd\main.go

vcgopkg will then look for all main funcs and produce a .zip file for each, for example:

C:\my-go-project\veracode\my-go-project--cmd--20210909010101.zip

All .zip files from veracode can then be uploaded to Veracode for Static Analysis.

About

Package a Go application for Veracode Static Analysis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages