mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Merge pull request #490 from khos2ow/check-license
Validate license header on files on CI
This commit is contained in:
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user