-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Static Code & License Analysis
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# see https://github.com/marketplace/actions/license-eye-header#configurations | ||
|
||
header: | ||
# this is not the actual license, but the desired compatibility | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-year: 2024 | ||
copyright-owner: Zaphiro Technologies | ||
|
||
paths-ignore: | ||
- '.github' | ||
- '.docker' | ||
- '**/*.{md,MD}' | ||
- 'go.mod' | ||
- 'go.sum' | ||
|
||
comment: on-failure | ||
|
||
# If you don't want to check dependencies' license compatibility, remove the following part | ||
dependency: | ||
files: | ||
- go.mod # If this is a Go project. | ||
licenses: | ||
# these are not real licenses, but the desired compatibility | ||
- name: github.com/zaphiro-technologies/cim-measurements-go | ||
license: Apache-2.0 | ||
- name: github.com/zaphiro-technologies/logging | ||
license: Apache-2.0 | ||
- name: github.com/zaphiro-technologies/observability | ||
license: Apache-2.0 | ||
- name: github.com/zaphiro-technologies/protobuf | ||
license: Apache-2.0 | ||
- name: github.com/zaphiro-technologies/roger | ||
license: Apache-2.0 | ||
- name: github.com/zaphiro-technologies/golib | ||
license: Apache-2.0 |
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,16 @@ | ||
name: License | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, reopened, ready_for_review, synchronize] | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
license: | ||
uses: zaphiro-technologies/github-workflows/.github/workflows/license.yaml@main | ||
secrets: inherit |
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,7 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.25.0 | ||
ignore: {} | ||
patch: {} | ||
exclude: | ||
global: | ||
- vendor/** |
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,16 @@ | ||
sonar.projectKey=zaphiro-technologies_protobuf | ||
sonar.organization=zaphiro-technologies | ||
sonar.sources=. | ||
sonar.exclusions=**/*_test.go, **/vendor/**, **/*.xml, **/*.md, .github/*, **/*.sql, **/*_test.go | ||
sonar.tests=. | ||
sonar.test.inclusions=**/*_test.go | ||
sonar.test.exclusions=**/vendor/** | ||
sonar.go.coverage.reportPaths=coverage/coverage.out | ||
sonar.language=go | ||
|
||
# This is the name and version displayed in the SonarCloud UI. | ||
#sonar.projectName=storer | ||
#sonar.projectVersion=1.0 | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
#sonar.sourceEncoding=UTF-8 |