Skip to content

Commit bfb241d

Browse files
rzadpggwpez
andauthored
Add missing licenses and tune the scanning workflow (#1288)
* Add missing Cumulus licenses * Typo * Add missing Substrate licenses * Single job checking the sub-repos in steps * Remove dates * Remove dates * Add missing (C) * Update FRAME UI tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update more UI tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]>
1 parent 7768b77 commit bfb241d

File tree

1,046 files changed

+6695
-1891
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,046 files changed

+6695
-1891
lines changed

.github/workflows/check-licenses.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ permissions:
99
jobs:
1010
check-licenses:
1111
runs-on: ubuntu-22.04
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
repo: [polkadot]
12+
env:
13+
LICENSES: "'Apache-2.0' 'GPL-3.0-only' 'GPL-3.0-or-later WITH Classpath-exception-2.0'"
14+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1615
steps:
1716
- name: Checkout sources
1817
uses: actions/checkout@v3
@@ -21,16 +20,26 @@ jobs:
2120
node-version: "18.x"
2221
registry-url: "https://npm.pkg.github.com"
2322
scope: "@paritytech"
24-
- name: Check the licenses for ${{ matrix.repo }}
23+
24+
- name: Check the licenses in Polkadot
2525
run: |
2626
shopt -s globstar
27-
echo "install"
28-
npm install -g @paritytech/[email protected]
29-
echo "run for ${{ matrix.repo }}"
30-
cd ${{ matrix.repo }}
3127
npx @paritytech/license-scanner scan \
32-
--ensure-licenses=Apache-2.0 \
33-
--ensure-licenses=GPL-3.0-only \
34-
./**/*.rs
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
--ensure-licenses ${{ env.LICENSES }} \
29+
-- ./polkadot/**/*.rs
30+
31+
- name: Check the licenses in Cumulus
32+
run: |
33+
shopt -s globstar
34+
npx @paritytech/license-scanner scan \
35+
--ensure-licenses ${{ env.LICENSES }} \
36+
--exclude ./cumulus/parachain-template \
37+
-- ./cumulus/**/*.rs
38+
39+
- name: Check the licenses in Substrate
40+
run: |
41+
shopt -s globstar
42+
npx @paritytech/license-scanner scan \
43+
--ensure-licenses ${{ env.LICENSES }} \
44+
--exclude ./substrate/bin/node-template \
45+
-- ./substrate/**/*.rs

cumulus/bridges/bin/runtime-common/src/integrity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/messages_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/messages_benchmarking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/messages_call_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/messages_generation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2022 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/messages_xcm_extension.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

cumulus/bridges/bin/runtime-common/src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
1+
// Copyright (C) Parity Technologies (UK) Ltd.
22
// This file is part of Parity Bridges Common.
33

44
// Parity Bridges Common is free software: you can redistribute it and/or modify

0 commit comments

Comments
 (0)