Skip to content

Commit

Permalink
Add a license header check
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Kitt <skitt@redhat.com>
  • Loading branch information
skitt committed Jan 5, 2021
1 parent e523f9a commit 00b1f0a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ jobs:
- name: Run golangci-lint
run: make golangci-lint

headers:
name: License Headers
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Check License Headers
uses: nilp0inter/search-legal-headers@v0.1.0

markdown-link-check:
name: Markdown Links (modified files)
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .legal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"**/*.go": "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
"LICENSE": "Apache License"
}
15 changes: 15 additions & 0 deletions pkg/globalnet/controllers/ipam/node_handler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
© 2021 Red Hat, Inc. and others
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package ipam

import (
Expand Down

0 comments on commit 00b1f0a

Please sign in to comment.