-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add license header check powered by Apache's skywalking-eyes Signed-off-by: nscuro <[email protected]> * exclude more files from license check; add missing license header Signed-off-by: nscuro <[email protected]> * `mode` option doesn't exist in latest stable version yet Signed-off-by: nscuro <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,18 @@ on: | |
- cron: 0 0 * * * | ||
|
||
jobs: | ||
golangci: | ||
licensecheck: | ||
name: License Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Check license headers | ||
uses: apache/[email protected] | ||
with: | ||
config: .licenserc.yml | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -31,14 +42,11 @@ jobs: | |
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [ "^1.17" ] | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: "^1.17" | ||
- name: Setup CycloneDX CLI | ||
run: | | ||
mkdir -p "$HOME/.local/bin" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
header: | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-owner: OWASP Foundation | ||
paths-ignore: | ||
- ".github/**" | ||
- ".gitignore" | ||
- ".gitpod.*" | ||
- ".golangci.yml" | ||
- ".goreleaser.yml" | ||
- ".licenserc.yml" | ||
- "**/*.md" | ||
- "**/go.mod" | ||
- "**/go.sum" | ||
- "**/testdata/**" | ||
- "examples/**" | ||
- "CODEOWNERS" | ||
- "Dockerfile" | ||
- "Dockerfile.*" | ||
- "LICENSE" | ||
- "Makefile" | ||
- "NOTICE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters