From 2d8e6c8f0e59f639b2960065b8d79b507c70d165 Mon Sep 17 00:00:00 2001 From: imbajin Date: Mon, 25 Nov 2024 12:13:33 +0800 Subject: [PATCH] chore: enable allow-license & exclude style dir (#119) * chore: enable allow-license & exclude style dir * Create test.sh * Revert "Create test.sh" This reverts commit b100550f442aa19ac52ffdd591bd55a8496b6baa. --- .gitattributes | 1 + .github/workflows/check-dependencies.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 69e734c8..333c08e7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,4 +11,5 @@ apache-release.sh export-ignore # ignored directory .github/ export-ignore .idea/ export-ignore +style/ export-ignore scripts/ export-ignore diff --git a/.github/workflows/check-dependencies.yml b/.github/workflows/check-dependencies.yml index 48eec918..e15aabab 100644 --- a/.github/workflows/check-dependencies.yml +++ b/.github/workflows/check-dependencies.yml @@ -1,4 +1,4 @@ -name: "3rd-party check" +name: "License header & 3rd-party check" on: pull_request: @@ -8,22 +8,22 @@ permissions: pull-requests: write jobs: - dependency-review: + check-dependency: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' uses: actions/checkout@v4 - name: 'Dependency Review' - uses: actions/dependency-review-action@v3 + uses: actions/dependency-review-action@v4 # Refer: https://github.com/actions/dependency-review-action with: fail-on-severity: low comment-summary-in-pr: on-failure - # Action will fail if dependencies don't match the list - #allow-licenses: Apache-2.0, MIT + # Action will fail if dependencies don't match the list (we could choose only one of the following) deny-licenses: GPL-3.0, AGPL-1.0, AGPL-3.0, LGPL-2.0, CC-BY-3.0 + #allow-licenses: Apache-2.0, MIT - check-license: + check-license-header: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4