Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-bug
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
MichaelMure
git-bug
Commits
2e73b62f
Unverified
Commit
2e73b62f
authored
2 years ago
by
Steve Moyer
Browse files
Options
Downloads
Patches
Plain Diff
feat(legal): break the build if packages with disallowed license(s) are added
parent
896d7cb1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/go.yml
+3
-0
3 additions, 0 deletions
.github/workflows/go.yml
.lichen.yaml
+21
-0
21 additions, 0 deletions
.lichen.yaml
Makefile
+4
-0
4 additions, 0 deletions
Makefile
with
28 additions
and
0 deletions
.github/workflows/go.yml
+
3
−
0
View file @
2e73b62f
...
...
@@ -56,3 +56,6 @@ jobs:
-
name
:
Check Security (vulnerable dependencies and insecure practices)
run
:
make secure
-
name
:
Check that all included packages have acceptable OSS licenses
run
:
make lint
This diff is collapsed.
Click to expand it.
.lichen.yaml
0 → 100644
+
21
−
0
View file @
2e73b62f
---
# Configuration for the Lichen software license scanner. The list below
# represents the licenses that are currently compiled into the git-bug
# binary (with the exception of the GPL license which is git-bug's own
# license and is therefore compatible.) Licenses can be added to the
# "allow" list using the official identifiers from the SPDX License
# List which can be found at https://spdx.org/licenses/.
#
# The Lichen configuration file format allows overrides (for packages
# where the license can't be automatically discovered) and exceptions
# (to allow disallowed licenses for certain packages). The format for
# this file can be found at https://github.com/uw-labs/lichen#config.
allow
:
-
"
Apache-2.0"
-
"
BSD-2-Clause"
-
"
BSD-3-Clause"
-
"
GPL-3.0-or-later"
-
"
ISC"
-
"
MIT"
-
"
MPL-2.0"
This diff is collapsed.
Click to expand it.
Makefile
+
4
−
0
View file @
2e73b62f
...
...
@@ -41,6 +41,10 @@ secure-vulnerabilities:
go
install
golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
legal
:
build
go
install
github.com/uw-labs/lichen@latest
lichen
--config
=
.lichen.yaml ./git-bug
test
:
go
test
-v
-bench
=
.
./...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment