diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 90b76a09f..ceb0c347c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -5,6 +5,16 @@ on: branches: ['*'] jobs: + + check-license: + runs-on: ubuntu-latest + timeout-minutes: 3 + + steps: + - uses: actions/checkout@v4 + - name: Check License Header + uses: apache/skywalking-eyes@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 + build-lint-test: name: Build, lint, test runs-on: ubuntu-latest @@ -97,3 +107,15 @@ jobs: name: kubernetes-integration-test-diag path: /tmp/ktf-diag* if-no-files-found: ignore + + build-workflow-complete: + needs: + [ + check-license, + build-lint-test, + kubernetes-integration-tests, + ] + runs-on: ubuntu-latest + steps: + - name: Build Complete + run: echo "Build Complete" diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 000000000..2a466b651 --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,18 @@ +--- +header: + - license: + content: | + SPDX-License-Identifier: Apache-2.0 + Copyright Authors of bpfman + paths: + - bpfman + paths-ignore: + - "**/LICENSE-*" + - "**/target/**" + - "**/*.toml" + - "**/*.proto" + - "**/*.lock" + - "**/*.yml" + - "**/*.md" + - "/ven" + comment: on-failure