Skip to content

Commit

Permalink
add Library Scan (with image scan) (future-architect#829)
Browse files Browse the repository at this point in the history
* add static container image scan

* server has many staticContainers

* use go module

* for staticContainer

* fix typo

* fix setErrs error

* change name : StaticContainer -> Image

* add scan -images-only flag

* fix makefile

* fix makefile for go module

* use rpmcmd instead of rpm

* add scrutinizer.yml

* change scrutinizer.yml

* fix scrutinizer.yml

* fix scrutinizer.yml

* fix scrutinizer.yml

* fix scrutinizer.yml

* delete scrutinizer

* add report test

* add sourcePackages and Arch

* fix for sider

* fix staticContainer -> image

* init scan library

* add library scan for servers

* fix tui bug

* fix lint error

* divide WpPackageFixStats and LibraryPackageFixedIns

* fix error

* Delete libManager_test.go

* stop use alpine os if err occurred in container

* merge upstream/master

* Delete libManager.go

* update goval-dictionary

* fix go.mod

* update Readme

* add feature : auto detect lockfiles
  • Loading branch information
tomoyamachi authored and kotakanbe committed Jun 12, 2019
1 parent 10942f7 commit abcea1a
Show file tree
Hide file tree
Showing 22 changed files with 1,527 additions and 1,157 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ results/
!setup/docker/*
.DS_Store
dist/
.idea
34 changes: 13 additions & 21 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.PHONY: \
dep \
depup \
build \
install \
all \
Expand All @@ -21,34 +19,27 @@ REVISION := $(shell git rev-parse --short HEAD)
BUILDTIME := $(shell date "+%Y%m%d_%H%M%S")
LDFLAGS := -X 'github.com/future-architect/vuls/config.Version=$(VERSION)' \
-X 'github.com/future-architect/vuls/config.Revision=build-$(BUILDTIME)_$(REVISION)'
GO := GO111MODULE=on go
GO_OFF := GO111MODULE=off go

all: dep build

dep:
go get -u github.com/golang/dep/...
dep ensure -v
all: build

depup:
go get -u github.com/golang/dep/...
dep ensure -update -v
build: main.go pretest
$(GO) build -a -ldflags "$(LDFLAGS)" -o vuls $<

build: main.go dep pretest
go build -a -ldflags "$(LDFLAGS)" -o vuls $<

b: main.go dep pretest
go build -ldflags "$(LDFLAGS)" -o vuls $<

install: main.go dep pretest
go install -ldflags "$(LDFLAGS)"
b: main.go pretest
$(GO) build -ldflags "$(LDFLAGS)" -o vuls $<

install: main.go pretest
$(GO) install -ldflags "$(LDFLAGS)"

lint:
@ go get -v golang.org/x/lint/golint
$(GO_OFF) get -u golang.org/x/lint/golint
golint $(PKGS)

vet:
# @-go get -v golang.org/x/tools/cmd/vet
go vet ./... || exit;
echo $(PKGS) | xargs env $(GO) vet || exit;

fmt:
gofmt -s -w $(SRCS)
Expand All @@ -62,7 +53,7 @@ fmtcheck:
pretest: lint vet fmtcheck

test:
echo $(PKGS) | xargs go test -cover -v || exit;
$(GO) test -cover -v ./... || exit;

unused:
$(foreach pkg,$(PKGS),unused $(pkg);)
Expand All @@ -74,4 +65,5 @@ cov:

clean:
echo $(PKGS) | xargs go clean || exit;
echo $(PKGS) | xargs go clean || exit;

Loading

0 comments on commit abcea1a

Please sign in to comment.