Merge pull request #490 from khos2ow/check-license

Validate license header on files on CI
This commit is contained in:
Khosrow Moossavi
2021-04-30 20:10:55 -04:00
committed by GitHub
4 changed files with 38 additions and 0 deletions

View File

@@ -71,6 +71,14 @@ jobs:
- name: Run Staticcheck
run: make staticcheck
- name: Check License headers
run: |
GO111MODULE=off go get github.com/google/addlicense
addlicense -check $(find . -type f -name "*.go")
addlicense -check $(find . -type f -name "*.sh")
addlicense -check $(find . -type f -name "Dockerfile")
- name: Check docs
if: "!contains(github.ref, 'refs/heads/master')"
run: make docs && test -z "$(git status --porcelain)" || exit 1

View File

@@ -1,3 +1,13 @@
/*
Copyright 2021 The terraform-docs Authors.
Licensed under the MIT license (the "License"); you may not
use this file except in compliance with the License.
You may obtain a copy of the License at the LICENSE file in
the root directory of this source tree.
*/
package cli
import (

View File

@@ -1,3 +1,13 @@
/*
Copyright 2021 The terraform-docs Authors.
Licensed under the MIT license (the "License"); you may not
use this file except in compliance with the License.
You may obtain a copy of the License at the LICENSE file in
the root directory of this source tree.
*/
package plugin
import (

View File

@@ -1,3 +1,13 @@
/*
Copyright 2021 The terraform-docs Authors.
Licensed under the MIT license (the "License"); you may not
use this file except in compliance with the License.
You may obtain a copy of the License at the LICENSE file in
the root directory of this source tree.
*/
package plugin
import (