woodpecker

package module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 9 Imported by: 0

README

go-woodpecker (WIP)

Give developers the last-mile help in fixing vulnerabilities

prerequisites

commands

woodpecker -h
woodpecker tree # shows depedency tree with vulnerabilities
woodpecker kill cve_id # updates the dependency until the cve_id is fixed. does NOT work with multi-module projects

Maven projects (TODO)

Basically it simply does the following: (note that it use go-git instead of the usual git client)

  • mvn versions:use-next-releases
  • mvn verify
  • git branch -b auto-update-deps
  • git add **pom.xml
  • git commit -m "auto update dependencies"
  • git push --set-upstream=auto-update-deps
  • create pull request

Caveats

[ ] multi-modules project

[ ] dependency suite (dependencies share the same version)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigOpts added in v0.4.0

type DigOpts struct {
	KillOpts
}

type KillOpts added in v0.3.5

type KillOpts struct {
	Opts
	SendPR bool
}

type Opts

type Opts struct {
	Verbose          bool
	BranchNamePrefix string
}

type TreeOpts added in v0.4.0

type TreeOpts struct {
	Opts
}

type Woodpecker

type Woodpecker struct {
	GitClient spi.GitClient
	GitServer spi.GitServer
	DepMgr    api.DependencyManager
	OSSIndex  spi.OSSIndex
}

func (Woodpecker) Dig

func (w Woodpecker) Dig(args []string, opts DigOpts) error

func (Woodpecker) Kill added in v0.3.5

func (w Woodpecker) Kill(args []string, opts KillOpts) error

func (Woodpecker) Tree added in v0.4.0

func (wp Woodpecker) Tree(opts TreeOpts) (api.DependencyTree, error)

Directories

Path Synopsis
cmd
internal
spi

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL