diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 816ba87aaf..aeb0589a11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,27 +139,3 @@ jobs: run: | Remove-Item 'c:/Windows/System32/drivers/etc/hosts' make test_elixir - - license_compliance: - name: Check Licence Compliance - - runs-on: ubuntu-24.04 - - steps: - - name: Use HTTPS instead of SSH for Git cloning - id: git-config - shell: bash - run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/ - - - name: Checkout project - id: checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - - name: "Run OSS Review Toolkit" - id: ort - uses: ./.github/workflows/ort - with: - upload-reports: true - fail-on-violation: true - report-formats: "WebApp" - version: "${{ github.sha }}" diff --git a/.github/workflows/license_compliance.yml b/.github/workflows/license_compliance.yml new file mode 100644 index 0000000000..8c53fe7480 --- /dev/null +++ b/.github/workflows/license_compliance.yml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: 2021 The Elixir Team + +name: License Compliance + +on: + push: + branches: + - main + + pull_request: + + workflow_dispatch: + +permissions: + contents: read + +env: + LANG: C.UTF-8 + +jobs: + license_compliance: + name: Check License Compliance + runs-on: ubuntu-24.04 + + steps: + - name: Use HTTPS instead of SSH for Git cloning + id: git-config + shell: bash + run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/ + + - name: Checkout project + id: checkout + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + + - name: Run OSS Review Toolkit + id: ort + uses: ./.github/workflows/ort + with: + upload-reports: true + fail-on-violation: true + report-formats: "WebApp" + version: "${{ github.sha }}"