forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gha: fossa license scanning (kubeflow#324)
* gha: fossa license scanning Signed-off-by: Matteo Mortari <[email protected]> * keep deprecated method for mount for TestContainers to avoid direct API dep. Signed-off-by: Matteo Mortari <[email protected]> * refactor GHA, test Signed-off-by: Matteo Mortari <[email protected]> * avoid license text in contributing leading to false positives Signed-off-by: Matteo Mortari <[email protected]> * move to use fossas/fossa-action Signed-off-by: Matteo Mortari <[email protected]> --------- Signed-off-by: Matteo Mortari <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: FOSSA License Scanning | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
fossa-scan: | ||
if: github.repository_owner == 'kubeflow' # FOSSA is not intended to run on forks. | ||
runs-on: ubuntu-latest | ||
env: | ||
# push-only token, intentional; see https://github.com/fossa-contrib/fossa-action?tab=readme-ov-file#push-only-api-token | ||
# this also how other CNCF projects are doing e.g. https://github.com/cncf/foundation/issues/109 | ||
FOSSA_API_KEY: 80871bdd477c2c97f65e9822cae99d20 # This is a push-only token that is safe to be exposed. | ||
steps: | ||
- name: Checkout tree | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run FOSSA scan and upload build data | ||
uses: fossas/[email protected] | ||
with: | ||
api-key: ${{ env.FOSSA_API_KEY }} | ||
project: "github.com/kubeflow/model-registry" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters