Skip to content

Commit

Permalink
Add foss checks to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lwr20 committed Dec 21, 2018
1 parent 1ce7b2b commit e075941
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli)
# Visit https://fossa.io to learn more

version: 1
cli:
server: https://app.fossa.io
fetcher: custom
project: https://github.com/projectcalico/cni-plugin.git
analyze:
modules:
- name: github.com/projectcalico/cni-plugin/cmd/calico
type: go
target: github.com/projectcalico/cni-plugin/cmd/calico
path: cmd/calico
options:
allow-unresolved: true
- name: github.com/projectcalico/cni-plugin/cmd/calico-ipam
type: go
target: github.com/projectcalico/cni-plugin/cmd/calico-ipam
path: cmd/calico-ipam
options:
allow-unresolved: true
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ fix:
install-git-hooks:
./install-git-hooks

foss-checks: vendor
@echo Running $@...
@docker run --rm -v $(CURDIR):/go/src/$(PACKAGE_NAME):rw \
-e LOCAL_USER_ID=$(LOCAL_USER_ID) \
-e FOSSA_API_KEY=$(FOSSA_API_KEY) \
-w /go/src/$(PACKAGE_NAME) \
$(CALICO_BUILD) /usr/local/bin/fossa

###############################################################################
# Unit Tests
###############################################################################
Expand Down

0 comments on commit e075941

Please sign in to comment.