From 768a23556a7a6a2e8fb3c43ed3150f40bcc38a2c Mon Sep 17 00:00:00 2001 From: Andrew Stoycos Date: Mon, 3 Jun 2024 11:41:34 -0400 Subject: [PATCH] make sure dependabot PRs merge automatically add license check and build-workflow-complete step. Signed-off-by: Andrew Stoycos --- .github/workflows/pull_request.yml | 22 ++++++++++++++++++++++ .licenserc.yaml | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .licenserc.yaml 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