Skip to content

Commit a89ad4e

Browse files
authored
Merge pull request #73 from RoseSecurity/add-copywrite-headings
Add Licensing Tooling
2 parents 514ddc0 + f67f0da commit a89ad4e

File tree

21 files changed

+678
-10
lines changed

21 files changed

+678
-10
lines changed

.coderabbit.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) RoseSecurity
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
25
language: "en-US"
36
tone_instructions: "Maintain a conversational tone that is supportive in all responses."

.copywrite.hcl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
schema_version = 1
2+
3+
project {
4+
license = "Apache-2.0"
5+
copyright_year = 2024
6+
copyright_holder = "RoseSecurity"
7+
8+
header_ignore = [
9+
# tests used within documentation (prose)
10+
"test/**",
11+
12+
# GitHub issue template configuration
13+
".github/ISSUE_TEMPLATE/*.yml",
14+
15+
# golangci-lint tooling configuration
16+
".golangci.yml",
17+
18+
# GoReleaser tooling configuration
19+
".goreleaser.yml",
20+
]
21+
}
22+

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) RoseSecurity
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
FROM golang:1.23 AS build
25

36
# Install Terramaid

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# Copyright (c) RoseSecurity
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
github: rosesecurity

.goreleaser.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) RoseSecurity
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# Make sure to check the documentation at https://goreleaser.com
25

36
version: 2

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) RoseSecurity
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
repos:
25
- repo: local
36
hooks:

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) RoseSecurity
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
FROM golang:alpine AS builder
25
WORKDIR /usr/src/terramaid
36
# Terraform version

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ build: ## Build Terramaid
1818
install: ## Install dependencies
1919
$(GO) install ./...@latest
2020

21+
generate: ## Generate tooling licensing
22+
cd tools; go generate ./...
23+
2124
clean: ## Clean up build artifacts
2225
$(GO) clean
2326
rm ./build/$(BINARY_NAME)

cmd/docs.go

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

36
import (

cmd/root.go

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

36
import (

cmd/run.go

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

36
import (

cmd/version.go

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

36
import (

go.mod

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/briandowns/spinner v1.23.1
1111
github.com/caarlos0/env/v11 v11.3.1
1212
github.com/fatih/color v1.18.0
13+
github.com/hashicorp/copywrite v0.19.0
1314
github.com/hashicorp/terraform-exec v0.21.0
1415
github.com/jwalton/go-supportscolor v1.2.0
1516
github.com/mattn/go-colorable v0.1.13
@@ -18,21 +19,68 @@ require (
1819
)
1920

2021
require (
22+
github.com/AlecAivazis/survey/v2 v2.3.6 // indirect
23+
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
2124
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
2225
github.com/arsham/rainbow v1.2.1 // indirect
26+
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
27+
github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect
28+
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 // indirect
29+
github.com/cli/go-gh v1.2.1 // indirect
30+
github.com/cli/safeexec v1.0.0 // indirect
31+
github.com/cli/shurcooL-graphql v0.0.2 // indirect
32+
github.com/cloudflare/circl v1.3.7 // indirect
2333
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be // indirect
2434
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
35+
github.com/fsnotify/fsnotify v1.6.0 // indirect
36+
github.com/go-openapi/errors v0.20.2 // indirect
37+
github.com/go-openapi/strfmt v0.21.3 // indirect
38+
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
39+
github.com/golang/protobuf v1.5.2 // indirect
40+
github.com/google/go-github/v45 v45.2.0 // indirect
41+
github.com/google/go-github/v53 v53.0.0 // indirect
42+
github.com/google/go-querystring v1.1.0 // indirect
43+
github.com/hashicorp/go-hclog v1.5.0 // indirect
2544
github.com/hashicorp/go-version v1.7.0 // indirect
45+
github.com/hashicorp/hcl v1.0.0 // indirect
2646
github.com/hashicorp/terraform-json v0.22.1 // indirect
47+
github.com/henvic/httpretty v0.0.6 // indirect
2748
github.com/inconshreveable/mousetrap v1.1.0 // indirect
49+
github.com/jedib0t/go-pretty v4.3.0+incompatible // indirect
50+
github.com/jedib0t/go-pretty/v6 v6.4.6 // indirect
51+
github.com/joho/godotenv v1.3.0 // indirect
52+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
53+
github.com/knadh/koanf v1.5.0 // indirect
2854
github.com/kr/pretty v0.3.1 // indirect
55+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
2956
github.com/mattn/go-isatty v0.0.20 // indirect
57+
github.com/mattn/go-runewidth v0.0.13 // indirect
58+
github.com/mergestat/timediff v0.0.3 // indirect
59+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
60+
github.com/mitchellh/copystructure v1.2.0 // indirect
61+
github.com/mitchellh/go-homedir v1.1.0 // indirect
62+
github.com/mitchellh/mapstructure v1.5.0 // indirect
63+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
64+
github.com/muesli/termenv v0.12.0 // indirect
65+
github.com/oklog/ulid v1.3.1 // indirect
3066
github.com/pkg/errors v0.9.1 // indirect
67+
github.com/rivo/uniseg v0.2.0 // indirect
3168
github.com/russross/blackfriday/v2 v2.1.0 // indirect
69+
github.com/samber/lo v1.37.0 // indirect
3270
github.com/spf13/pflag v1.0.5 // indirect
71+
github.com/thanhpk/randstr v1.0.4 // indirect
72+
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e // indirect
3373
github.com/zclconf/go-cty v1.14.4 // indirect
74+
go.mongodb.org/mongo-driver v1.10.0 // indirect
75+
golang.org/x/crypto v0.21.0 // indirect
76+
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect
77+
golang.org/x/net v0.23.0 // indirect
78+
golang.org/x/oauth2 v0.8.0 // indirect
79+
golang.org/x/sync v0.9.0 // indirect
3480
golang.org/x/sys v0.25.0 // indirect
35-
golang.org/x/term v0.1.0 // indirect
81+
golang.org/x/term v0.18.0 // indirect
3682
golang.org/x/text v0.20.0 // indirect
83+
google.golang.org/appengine v1.6.7 // indirect
84+
google.golang.org/protobuf v1.28.0 // indirect
3785
gopkg.in/yaml.v3 v3.0.1 // indirect
3886
)

0 commit comments

Comments
 (0)