NOISSUE - Update Copyright Notice (#39)

* chore(license): update copyright notices

Add CI check for non go files to check that the files contain a license

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

* fix(ci): log failed files

When the CI fails during check for license header, log the failed file to console so that someone can check on the actual file. Also simplify the grep check to make it more human readable and understandable

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

---------

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
This commit is contained in:
b1ackd0t
2023-11-17 14:37:30 +03:00
committed by GitHub
parent 48dddc4bba
commit a0c40ba462
701 changed files with 841 additions and 646 deletions
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
.git
.github
build
+31
View File
@@ -0,0 +1,31 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
name: Check License Header
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-license:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check License Header
run: |
CHECK=$(grep -rcL --exclude-dir={.git,build} \
--exclude=\*.{crt,key,pem,zed,hcl,md,json,csv,mod,sum,tmpl,args} \
--exclude={CODEOWNERS,LICENSE,MAINTAINERS} \
--regexp "Copyright (c) Abstract Machines" .)
if [ "$CHECK" ]; then
echo "License header check failed. Fix the following files:"
echo "$CHECK"
exit 1
fi
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
name: Deploy GitHub Pages
on:
+4 -1
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
run:
timeout: 3m
build-tags:
@@ -29,7 +32,7 @@ linters-settings:
checks: ["-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022"]
goheader:
template: |-
Copyright (c) Magistrala
Copyright (c) Abstract Machines
SPDX-License-Identifier: Apache-2.0
linters:
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
version: v1.0
name: CI Pipeline
agent:
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package magistrala
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
asyncapi: '2.6.0'
id: 'https://github.com/absmach/magistrala/blob/master/api/asyncapi/mqtt.yml'
info:
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
asyncapi: 2.6.0
id: 'https://github.com/absmach/magistrala/blob/master/api/asyncapi/websocket.yml'
info:
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.3
info:
title: Magistrala Auth Service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala Bootstrap service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala Certs service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala Notifiers service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala http adapter
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala Provision service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala reader service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
type: object
properties:
status:
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.3
info:
title: Magistrala Things Service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.1
info:
title: Magistrala twins service
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
openapi: 3.0.3
info:
title: Magistrala Users Service
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
syntax = "proto3";
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package api contains implementation of Auth service HTTP API.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package grpc contains implementation of Auth service gRPC API.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc_test
+1 -1
View File
@@ -1,3 +1,3 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package http
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package domains
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package domains
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package domains
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package domains
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package domains
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package keys
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package keys_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package keys
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package keys
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package keys
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package http
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
//go:build !test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
//go:build !test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package jwt_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package jwt
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package mocks
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package mocks
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package mocks
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package mocks
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package postgres contains Key repository implementations using
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres
+3
View File
@@ -1,3 +1,6 @@
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres_test
import (
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package postgres_test contains tests for PostgreSQL repository
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package spicedb
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package auth
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package tracing provides tracing instrumentation for Magistrala Users service.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package tracing
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package api contains implementation of bootstrap service HTTP API.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package api
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package api_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
//go:build !test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
//go:build !test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package api
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package api
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package api
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package api
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package bootstrap
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package bootstrap contains the domain concept definitions needed to support
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package consumer contains events consumer for events
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package consumer
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package consumer
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package events provides the domain concept definitions needed to support
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package producer contains the domain events needed to support
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package producer
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package producer_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package producer
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package producer_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package mocks
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package mocks contains mocks for testing purposes.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
// Package postgres contains repository implementations using PostgreSQL as
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package postgres_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package bootstrap
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package bootstrap_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package bootstrap
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package bootstrap_test
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) Magistrala
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package bootstrap

Some files were not shown because too many files have changed in this diff Show More