Bump actions/checkout from 3df4ab11eba7bda6032a0b82a6bb43b11571feac to de5a000abf73b6f4965bd1bcdf8f8d94a56ea815 #18
Workflow file for this run
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
name: Check licenses | |
on: | |
pull_request: | |
permissions: | |
packages: read | |
jobs: | |
check-licenses: | |
runs-on: ubuntu-22.04 | |
env: | |
LICENSES: "'Apache-2.0' 'GPL-3.0-only' 'GPL-3.0-or-later WITH Classpath-exception-2.0'" | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@de5a000abf73b6f4965bd1bcdf8f8d94a56ea815 # v4.0.0 | |
- uses: actions/[email protected] | |
with: | |
node-version: "18.x" | |
registry-url: "https://npm.pkg.github.com" | |
scope: "@paritytech" | |
- name: Check the licenses in Polkadot | |
run: | | |
shopt -s globstar | |
npx @paritytech/license-scanner scan \ | |
--ensure-licenses ${{ env.LICENSES }} \ | |
-- ./polkadot/**/*.rs | |
- name: Check the licenses in Cumulus | |
run: | | |
shopt -s globstar | |
npx @paritytech/license-scanner scan \ | |
--ensure-licenses ${{ env.LICENSES }} \ | |
--exclude ./cumulus/parachain-template \ | |
-- ./cumulus/**/*.rs | |
- name: Check the licenses in Substrate | |
run: | | |
shopt -s globstar | |
npx @paritytech/license-scanner scan \ | |
--ensure-licenses ${{ env.LICENSES }} \ | |
--exclude ./substrate/bin/node-template \ | |
-- ./substrate/**/*.rs |