Update FOSSA configuration for new requirements layout (#10848)

* Update FOSSA configuration

* test FOSSA failure

* Update FOSSA files changed regex

* Revert "test FOSSA failure"

This reverts commit a97213db78.

* pre-commit linting

* remove docker.txt check
This commit is contained in:
Rob DiCiuccio 2020-09-16 13:28:04 -07:00 committed by GitHub
parent 281305e0cf
commit d74044c2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View File

@ -28,13 +28,9 @@ analyze:
type: npm
target: superset-frontend
path: superset-frontend
- name: docs
type: pip
target: docs
path: docs
- name: .
- name: base
type: pip
target: .
path: .
options:
requirements: ./requirements/testing.txt
requirements: ./requirements/base.txt

View File

@ -33,7 +33,7 @@ jobs:
EOF
if [[ "${FILES}" =~ (.*package*\.json|requirements/*\.txt|setup\.py) ]]; then
if [[ "${FILES}" =~ (.*package*\.json|requirements\/[a-z_-]+\.txt|setup\.py) ]]; then
echo "Detected dependency changes... running fossa check"
./scripts/fossa.sh

View File

@ -18,10 +18,12 @@
#
# This is the recommended way to install FOSSA's cli per the docs:
# https://docs.fossa.com/docs/travisci#section-add-fossa-steps-to-travisyml
# https://docs.fossa.com/docs/generic-ci
curl -s -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash
# This key is a push-only API key, also recommended for public projects
# https://docs.fossa.com/docs/api-reference#section-push-only-api-token
export FOSSA_API_KEY="${FOSSA_API_KEY:-f72e93645bdfeab94bd227c7bbdda4ef}"
fossa init
fossa analyze
fossa test