diff --git a/.github/check-spdx.yml b/.github/check-spdx.yml new file mode 100644 index 000000000..597dbde83 --- /dev/null +++ b/.github/check-spdx.yml @@ -0,0 +1,14 @@ +DEFAULT: + perform_check: yes # Perform check for all files + allowed_licenses: + - Apache-2.0 + license_for_new_files: Apache-2.0 # license to be used when inserting a new copyright notice + new_notice_c: |+ # notice for new C, CPP, H, HPP and LD files + // SPDX-FileCopyrightText: (c) {years} Tenstorrent AI ULC + // + // SPDX-License-Identifier: {license} + + new_notice_python: |+ # notice for new python files + # SPDX-FileCopyrightText: (c) {years} Tenstorrent AI ULC + # + # SPDX-License-Identifier: {license} \ No newline at end of file diff --git a/.github/workflows/pull-request-workflow.yml b/.github/workflows/pull-request-workflow.yml index c5fbe7958..d55ff28a2 100644 --- a/.github/workflows/pull-request-workflow.yml +++ b/.github/workflows/pull-request-workflow.yml @@ -10,4 +10,7 @@ on: jobs: build-artifacts: uses: ./.github/workflows/build-artifacts.yml + secrets: inherit + spdx: + uses: ./.github/workflows/spdx.yml secrets: inherit \ No newline at end of file diff --git a/.github/workflows/spdx.yml b/.github/workflows/spdx.yml new file mode 100644 index 000000000..e69de29bb diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..f3a876ec4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/espressif/check-copyright/ + rev: v1.0.3 + hooks: + - id: check-copyright + args: ['--config', '.github/check-spdx.yaml'] \ No newline at end of file