This action validates project's dependencies licenses, failing if it finds any dependency that uses GPL, MPL, and EPL licensing.
name: 'Validate Project Dependencies Licenses'
on: push
jobs:
validate-project-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Dependencies Licenses
uses: skimit/[email protected]
env:
EXTRA_INDEX_URL: ${{ secrets.EXTRA_INDEX_URL }}
EXTRA_INDEX_URL_USERNAME: ${{ secrets.EXTRA_INDEX_URL_USERNAME }}
EXTRA_INDEX_URL_PASSWORD: ${{ secrets.EXTRA_INDEX_URL_PASSWORD }}
Should you with to ignore specific dependencies from having their licenses checked, all you need to do is create a new file on your repository root folder called allowed_dependencies.txt
. Inside the file, just place the names of the dependencies you want to ignore. E.g.:
▶ cat allowed_dependencies.txt
bidict
fastapi
tqdm
Deeper Insights™ mission is to empower people to use data more effectively and to demystify artificial intelligence. Rather than holding up the common narrative of machines replacing humans, we see how machines can help humans to have easier lives and better businesses. Creating bespoke solutions is part of our DNA. We came up with this solution to help our specialists focus on delivering the best version of their work, using automation to take care of the repetitive tasks.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.