Skip to content

Commit f3f8b07

Browse files
authored
[COMPLIANCE] Add copyright and license headers (#1203)
* add copywrite changes * [COMPLIANCE] Add copyright and license headers * Update compliance.yml
1 parent 6bda908 commit f3f8b07

File tree

215 files changed

+1536
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+1536
-0
lines changed

.copywrite.hcl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
schema_version = 1
2+
3+
project {
4+
license = "MPL-2.0"
5+
copyright_year = 2019
6+
7+
header_ignore = [
8+
# changie tooling configuration and CHANGELOG entries (prose)
9+
".changes/unreleased/*.yaml",
10+
".changie.yaml",
11+
12+
# GitHub issue template configuration
13+
".github/ISSUE_TEMPLATE/*.yml",
14+
15+
# GitHub Actions workflow-specific configurations
16+
".github/labeler-*.yml",
17+
18+
# golangci-lint tooling configuration
19+
".golangci.yml",
20+
21+
# GoReleaser tooling configuration
22+
".goreleaser.yml",
23+
24+
# Release Engineering tooling configuration
25+
".release/*.hcl",
26+
]
27+
}

.github/CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ updates:
1414
- dependency-name: "github.com/hashicorp/go-hclog"
1515
# go-plugin should only be updated via terraform-plugin-go
1616
- dependency-name: "github.com/hashicorp/go-plugin"
17+
- package-ecosystem: "gomod"
18+
directory: "/tools"
19+
schedule:
20+
interval: "daily"

.github/workflows/compliance.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: compliance
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
# Reference: ENGSRV-059
11+
copywrite:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
15+
- uses: hashicorp/setup-copywrite@867a1a2a064a0626db322392806428f7dc59cb3e # v1.1.2
16+
- run: copywrite headers --plan
17+
- run: copywrite license --plan

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lint:
1010

1111
generate:
1212
go generate ./...
13+
cd tools; go generate ./...
1314

1415
fmt:
1516
gofmt -s -w -e $(GOFMT_FILES)

diag/diagnostic.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
14
package diag
25

36
import (

diag/helpers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
14
package diag
25

36
import "fmt"

helper/acctest/random.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
14
package acctest
25

36
import (

helper/acctest/random_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
14
package acctest
25

36
import (

helper/customdiff/compose.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
14
package customdiff
25

36
import (

0 commit comments

Comments
 (0)