Skip to content

Commit

Permalink
Merge pull request #12 from radoslawc/patch-1
Browse files Browse the repository at this point in the history
adding license scan
  • Loading branch information
nephio-prow[bot] authored Jan 17, 2024
2 parents d285646 + 2635a13 commit ca3c60f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist-types
coverage
.vscode
**/CHANGELOG.md
.prow.yaml
44 changes: 44 additions & 0 deletions .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ presubmits:
- '-c'
- |
set -euo pipefail
apk update
apk add python3 make g++
yarn install --frozen-lockfile
yarn test:all
Expand All @@ -24,7 +26,49 @@ presubmits:
- '-c'
- |
set -euo pipefail
apk update
apk add python3 make g++
yarn install --frozen-lockfile
yarn lint:all
yarn tsc:full
yarn prettier:check
- name: presubmit-kbp-license-header-check
decorate: true
always_run: true
spec:
containers:
- image: nephio/gotests:1671656214984921088
command:
- "/bin/sh"
- "-c"
- |
/usr/local/bin/checklicense.sh > ${ARTIFACTS}/license_headers_results.txt
- name: presubmit-kbp-scancode-toolkit
decorate: true
always_run: true
spec:
containers:
- image: nephio/scancode-toolkit:v31.2.5
command:
- "/bin/sh"
args:
- "-c"
- |
/scancode-toolkit/scancode --ignore "whitelist.json" -clpeui -n 2 --html ${ARTIFACTS}/scancode_report.html . --tallies-with-details
resources:
requests:
cpu: 2
memory: 1Gi
- name: presubmit-kbp-fossology
decorate: true
always_run: true
spec:
containers:
- image: fossology/fossology:scanner
command:
- "/bin/bash"
args:
- "-c"
- |
/bin/fossologyscanner --report SPDX_JSON repo nomos ojo copyright keyword
cp -R results ${ARTIFACTS}/

0 comments on commit ca3c60f

Please sign in to comment.