Skip to content

License Finder

License Finder #13

Workflow file for this run

name: License Finder
on:
workflow_dispatch:
workflow_call:
pull_request:
branches: ["main"]
jobs:
license_finder:
if: github.repository_owner == 'viamrobotics'
name: Audit 3rd-Party Licenses
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64-cache
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: apt-get install -y jq
- uses: subosito/[email protected]
- run: flutter pub get
env:
PUB_CACHE: .pub-cache # install to this directory
# License finder doesn't look in the correct directory, so we have to rename
# See https://github.com/pivotal/LicenseFinder/issues/1001
- run: mv .pub-cache/hosted/pub.dev .pub-cache/hosted/pub.dartlang.org
- name: Run license finder
run: license_finder
env:
PUB_CACHE: .pub-cache