Skip to content

Commit

Permalink
Add a FOSSA configuration file
Browse files Browse the repository at this point in the history
Summary: Add a .fossa.yml configuration file for analyzing Maven, Java, Python, and JavaScript open-source dependencies.

Test Plan:
fossa

Jenkins: skip

Reviewers: steve.varnau

Reviewed By: steve.varnau

Subscribers: ybase

Differential Revision: https://phabricator.dev.yugabyte.com/D10464
  • Loading branch information
mbautin committed Jan 27, 2021
1 parent cb668ea commit 3fb0c57
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .arclint
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"(^.*[.]patch$)",
"(java/yb-cdc/pom.xml)",
"(java/yb-cdc/README.md)",
"(^docs/.*[.]md$)"
"(^docs/.*[.]md$)",
"(^[.]fossa[.]yml$)"
]
},
"pycodestyle": {
Expand Down
47 changes: 47 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (c) Yugabyte, Inc.
#
# To analyze (without uploading to Fossa) -- for local debugging:
# fossa analyze --debug --output
#
# To analyze and upload dependencies:
# fossa analyze --debug

version: 2
cli:
server: https://app.fossa.com
fetcher: custom
project: [email protected]:yugabyte/yugabyte-db.git
analyze:
modules:
- name: Yugabyte RPC Client
type: mvn
target: pom.xml
path: java
options:
strategy: maven-tree
cmd: |
set -euo pipefail -x
cd java
mvn --batch-mode dependency:tree
- name: Yugabyte Platform
type: mvn
target: pom.xml
path: managed
options:
strategy: maven-tree
cmd: |
set -euo pipefail -x
cd managed
mvn --batch-mode dependency:tree -f "$(
USE_MAVEN_LOCAL=true sbt -Dsbt.log.noformat=true make-pom | perl -n -e '/^\[info\] Wrote (.*[.]pom)$/ && print $1'
)"
- name: ui
type: npm
target: managed/ui
path: managed/ui
- name: opscli
type: pip
target: managed/devops
path: managed/devops
options:
requirements: managed/devops/python_requirements_frozen.txt

0 comments on commit 3fb0c57

Please sign in to comment.