Skip to content

Commit

Permalink
add license to ci process
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 26, 2023
1 parent 5d733c0 commit c89be93
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 216 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ jobs:

- name: go vet
run: make vet

- name: compliance
run: make compliance-check
File renamed without changes.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
all: verify unit-tests integration-tests
all: compliance-check verify unit-tests integration-tests

check-repo-clean:
git update-index --refresh && git diff-index --quiet HEAD --

compliance:
go run github.com/google/go-licenses save --ignore github.com/Juniper --save_path Third_Party_Code --force ./... || exit 1 ;\
go run github.com/google/go-licenses report --ignore github.com/Juniper --template .notices.tpl ./... > Third_Party_Code/NOTICES.md || exit 1 ;\

compliance-check: compliance check-repo-clean


fast-check: verify unit-tests

Expand Down
31 changes: 31 additions & 0 deletions Third_Party_Code/NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,37 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
```

## github.com/orsinium-labs/enum

* Name: github.com/orsinium-labs/enum
* Version: v1.3.0
* License: [MIT](https://github.com/orsinium-labs/enum/blob/v1.3.0/LICENSE)

```
MIT License
2023 Gram
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

## google.golang.org/protobuf

* Name: google.golang.org/protobuf
Expand Down
202 changes: 0 additions & 202 deletions Third_Party_Code/github.com/Juniper/apstra-go-sdk/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions Third_Party_Code/github.com/Juniper/apstra-go-sdk/NOTICE

This file was deleted.

21 changes: 21 additions & 0 deletions Third_Party_Code/github.com/orsinium-labs/enum/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

2023 Gram

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit c89be93

Please sign in to comment.