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 c29229e
Show file tree
Hide file tree
Showing 2 changed files with 14 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"
}

0 comments on commit c29229e

Please sign in to comment.