Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.54 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.54 KB

License Finder Action

A GitHub Action for running Pivotal License Finder

Inputs

permitted-licenses

A comma separated list of licenses that are permitted. For example:

permitted-licenses: MIT,Apache-2.0

approved-dependencies

A comma separated list of dependencies that are approved

approved-dependencies: jquery,bootstrap

report-name

Required The name of the report to be generated.

Default: license_finder_report.xml

base-path

Required If it is not in the root workspace parth, the base path with the code to review.

Default: ${{ github.workspace }}

Usage

uses: jmservera/[email protected]
with:
  permitted-licenses: MIT,Apache-2.0
  approved-dependencies: jquery,bootstrap

This action becomes useful when combined with some other actions like the upload artifact action and the Publish unit test result action

- name: 'License Scan'
  uses: jmservera/[email protected]
  with:
    permitted-licenses: MIT,Apache-2.0
    approved-dependencies: jquery,bootstrap
- name: Publish Test Results
  uses: EnricoMi/[email protected]
  if: always()
  with:
    junit_files: "license_finder_report.xml"
- name: 'Upload Dependency Review Report'
  if: always()
  uses: actions/upload-artifact@v2
  with:
    name: license-finder-report
    path: license_finder_report.xml