This is an automated email from the ASF dual-hosted git repository.
vishesh pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/cloudstack-terraform-provider.git
The following commit(s) were added to refs/heads/main by this push:
new ed7ac8c rat + excludes and add licenses to other files (#200)
ed7ac8c is described below
commit ed7ac8cb91ca2c69a036f882b862cd65f743e6ec
Author: dahn <[email protected]>
AuthorDate: Tue Aug 26 10:28:24 2025 +0200
rat + excludes and add licenses to other files (#200)
---
.asf.yaml | 17 ++++++++++
.github/workflows/rat.yaml | 36 ++++++++++++++++++++++
.rat-excludes | 9 ++++++
GNUmakefile | 17 ++++++++++
cloudstack/provider_v6.go | 17 ++++++++++
.../resource_cloudstack_configuration_test.go | 17 ++++++++++
go.mod | 17 ++++++++++
7 files changed, 130 insertions(+)
diff --git a/.asf.yaml b/.asf.yaml
index c0623c8..e16e005 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
github:
description: "CloudStack Terraform Provider"
homepage: https://cloudstack.apache.org
diff --git a/.github/workflows/rat.yaml b/.github/workflows/rat.yaml
new file mode 100644
index 0000000..76462d5
--- /dev/null
+++ b/.github/workflows/rat.yaml
@@ -0,0 +1,36 @@
+name: RAT Check
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - '**'
+
+jobs:
+ rat:
+ name: Apache RAT Check
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Set up Java
+ uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: 17
+
+ - name: Download Apache RAT
+ run: |
+ curl -L -O
https://downloads.apache.org/creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
+ tar -xzf apache-rat-0.16.1-bin.tar.gz
+
+ - name: Run RAT
+ run: |
+ java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E
.rat-excludes > rat-report.txt
+ cat rat-report.txt
+ # Fail if unapproved licenses are found
+ grep -qe '^0 Unknown Licenses' rat-report.txt && exit 0 || exit 1
diff --git a/.rat-excludes b/.rat-excludes
new file mode 100644
index 0000000..c2e2360
--- /dev/null
+++ b/.rat-excludes
@@ -0,0 +1,9 @@
+CHANGELOG.md
+CONTRIBUTING.md
+go.sum
+rat-report.txt
+apache-rat-0.16.1
+.gitignore
+.rat-excludes
+.terraform-registry
+website
diff --git a/GNUmakefile b/GNUmakefile
index d94404b..5802671 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
TEST?=$$(go list ./... | grep -v 'vendor')
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
diff --git a/cloudstack/provider_v6.go b/cloudstack/provider_v6.go
index 339e4b3..23637f5 100644
--- a/cloudstack/provider_v6.go
+++ b/cloudstack/provider_v6.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
package cloudstack
import (
diff --git a/cloudstack/resource_cloudstack_configuration_test.go
b/cloudstack/resource_cloudstack_configuration_test.go
index 0b40da5..a9c4f51 100644
--- a/cloudstack/resource_cloudstack_configuration_test.go
+++ b/cloudstack/resource_cloudstack_configuration_test.go
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
package cloudstack
import (
diff --git a/go.mod b/go.mod
index d030f29..c09a776 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
module github.com/terraform-providers/terraform-provider-cloudstack
require (