From db664ffab87b11ee5d70fe7206dd854299aba00f Mon Sep 17 00:00:00 2001 From: Binbin Li Date: Thu, 16 Nov 2023 06:57:56 +0000 Subject: [PATCH 1/2] build: add license-checker --- .github/licenserc.yml | 49 ++++++++++++++++++++++++++++++++++ .github/workflows/build-pr.yml | 16 +++++++++++ Makefile | 13 +++++++++ 3 files changed, 78 insertions(+) create mode 100644 .github/licenserc.yml diff --git a/.github/licenserc.yml b/.github/licenserc.yml new file mode 100644 index 000000000..932ae3b65 --- /dev/null +++ b/.github/licenserc.yml @@ -0,0 +1,49 @@ +# Copyright The Ratify Authors. +# Licensed 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. + +header: + license: + spdx-id: Apache-2.0 + content: | + Copyright The Ratify Authors. + Licensed 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. + + paths-ignore: + - "**/*.{md,svg,yaml,crt,json,pub,yml,pb.go,proto}" + - "CODEOWNERS" + - "PROJECT" + - "NOTICE" + - "LICENSE" + - "MAINTAINERS" + - "go.mod" + - "go.sum" + - "**/testdata/**" + - "charts/**/*" + - ".gitignore" + - ".devcontainer/gatekeeper.http" + + comment: on-failure + +dependency: + files: + - go.mod diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 0d33054fe..f2634d341 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -16,6 +16,22 @@ on: permissions: read-all jobs: + check-license: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - name: Check license header + uses: apache/skywalking-eyes/header@a790ab8dd23a7f861c18bd6aaa9b012e3a234bce + with: + mode: check + config: .github/licenserc.yml + - name: Check dependencies license + uses: apache/skywalking-eyes/dependency@a790ab8dd23a7f861c18bd6aaa9b012e3a234bce + with: + config: .github/licenserc.yml + flags: + --weak-compatible=true build: runs-on: ubuntu-latest steps: diff --git a/Makefile b/Makefile index 95f61c6d6..53cbf89e6 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + BINARY_NAME = ratify INSTALL_DIR = ~/.ratify CERT_DIR = ${GITHUB_WORKSPACE}/tls/certs From 30652255b36a4707c0586234783ffaede5426f77 Mon Sep 17 00:00:00 2001 From: Binbin Li Date: Mon, 20 Nov 2023 07:21:15 +0000 Subject: [PATCH 2/2] test: add tests for base envelope Signed-off-by: Binbin Li --- .devcontainer/Dockerfile | 13 ++++++++++ .devcontainer/post-create.sh | 13 ++++++++++ cmd/ratify/cmd/version.go | 13 ++++++++++ crd.Dockerfile | 13 ++++++++++ experimental/generate-protos.sh | 13 ++++++++++ httpserver/Dockerfile | 13 ++++++++++ .../oras/authprovider/azure/azureidentity.go | 2 +- pkg/common/plugin/os_unix.go | 26 +++++++++---------- .../certificatestore_controller.go | 22 +++++++--------- pkg/verifier/notation/notation_test.go | 13 ++++++++++ pkg/verifier/notation/pluginmanager_test.go | 13 ++++++++++ pkg/verifier/notation/truststore_test.go | 13 ++++++++++ terraform/azure/main.tf | 13 ++++++++++ terraform/azure/output.tf | 13 ++++++++++ terraform/azure/terraform.tfvars | 13 ++++++++++ terraform/azure/variables.tf | 13 ++++++++++ test/bats/azure-test.bats | 13 ++++++++++ test/bats/base-test.bats | 13 ++++++++++ test/bats/cli-test.bats | 13 ++++++++++ test/bats/helpers.bash | 13 ++++++++++ test/bats/high-availability.bats | 13 ++++++++++ test/bats/plugin-test.bats | 13 ++++++++++ test/bats/quickstart-test.bats | 13 ++++++++++ 23 files changed, 283 insertions(+), 27 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index aff5ff394..ec029e54f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/go/.devcontainer/base.Dockerfile # [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 51c1ec75c..11cd7d714 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/bin/bash set -euo pipefail diff --git a/cmd/ratify/cmd/version.go b/cmd/ratify/cmd/version.go index f59efc7b2..9a5fbd0a9 100644 --- a/cmd/ratify/cmd/version.go +++ b/cmd/ratify/cmd/version.go @@ -1,3 +1,16 @@ +// Copyright The Ratify Authors. +// Licensed 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 cmd import ( diff --git a/crd.Dockerfile b/crd.Dockerfile index 735ddbba1..2635b42e3 100644 --- a/crd.Dockerfile +++ b/crd.Dockerfile @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + FROM alpine as builder ARG TARGETOS diff --git a/experimental/generate-protos.sh b/experimental/generate-protos.sh index 3c9a42081..92938cf6a 100644 --- a/experimental/generate-protos.sh +++ b/experimental/generate-protos.sh @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #! /bin/bash diff --git a/httpserver/Dockerfile b/httpserver/Dockerfile index 7d20d75fe..e1e016597 100644 --- a/httpserver/Dockerfile +++ b/httpserver/Dockerfile @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + ARG BUILDERIMAGE="golang:1.20" ARG BASEIMAGE="gcr.io/distroless/static:nonroot" diff --git a/pkg/common/oras/authprovider/azure/azureidentity.go b/pkg/common/oras/authprovider/azure/azureidentity.go index 4b7ca8b90..9e5ee0111 100644 --- a/pkg/common/oras/authprovider/azure/azureidentity.go +++ b/pkg/common/oras/authprovider/azure/azureidentity.go @@ -8,7 +8,7 @@ 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, -IdentityTHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +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. */ diff --git a/pkg/common/plugin/os_unix.go b/pkg/common/plugin/os_unix.go index bfa3e8749..f451ca3ff 100644 --- a/pkg/common/plugin/os_unix.go +++ b/pkg/common/plugin/os_unix.go @@ -1,20 +1,18 @@ -//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +// Copyright The Ratify Authors. +// Licensed 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 -/* -Copyright The Ratify Authors. -Licensed 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 -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. -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. -*/ +//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +// +build darwin dragonfly freebsd linux netbsd openbsd solaris package plugin diff --git a/pkg/controllers/certificatestore_controller.go b/pkg/controllers/certificatestore_controller.go index 2c60347aa..5249a17f2 100644 --- a/pkg/controllers/certificatestore_controller.go +++ b/pkg/controllers/certificatestore_controller.go @@ -1,18 +1,16 @@ -/* -Copyright 2022. +// Copyright The Ratify Authors. +// Licensed 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 -Licensed 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 - 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. -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 controllers diff --git a/pkg/verifier/notation/notation_test.go b/pkg/verifier/notation/notation_test.go index d7eb7fce9..8feb097ff 100644 --- a/pkg/verifier/notation/notation_test.go +++ b/pkg/verifier/notation/notation_test.go @@ -1,3 +1,16 @@ +// Copyright The Ratify Authors. +// Licensed 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 notation import ( diff --git a/pkg/verifier/notation/pluginmanager_test.go b/pkg/verifier/notation/pluginmanager_test.go index f82e3ae10..8ac16eb1c 100644 --- a/pkg/verifier/notation/pluginmanager_test.go +++ b/pkg/verifier/notation/pluginmanager_test.go @@ -1,3 +1,16 @@ +// Copyright The Ratify Authors. +// Licensed 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 notation import ( diff --git a/pkg/verifier/notation/truststore_test.go b/pkg/verifier/notation/truststore_test.go index 5a0b727c0..e2a6ce882 100644 --- a/pkg/verifier/notation/truststore_test.go +++ b/pkg/verifier/notation/truststore_test.go @@ -1,3 +1,16 @@ +// Copyright The Ratify Authors. +// Licensed 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 notation import ( diff --git a/terraform/azure/main.tf b/terraform/azure/main.tf index c03fb5e73..46f9edee3 100644 --- a/terraform/azure/main.tf +++ b/terraform/azure/main.tf @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + terraform { required_providers { azurerm = { diff --git a/terraform/azure/output.tf b/terraform/azure/output.tf index c5f5db146..22ea5e669 100644 --- a/terraform/azure/output.tf +++ b/terraform/azure/output.tf @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + output "key_vault_uri" { value = azurerm_key_vault.kv.vault_uri } diff --git a/terraform/azure/terraform.tfvars b/terraform/azure/terraform.tfvars index 2741d0d4a..49c88fce1 100644 --- a/terraform/azure/terraform.tfvars +++ b/terraform/azure/terraform.tfvars @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + registry_name = "example-registry" key_vault_name = "example-key-vault" identity_name = "example-workload-identity" diff --git a/terraform/azure/variables.tf b/terraform/azure/variables.tf index e87afd7b9..1b35e825c 100644 --- a/terraform/azure/variables.tf +++ b/terraform/azure/variables.tf @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + variable "registry_name" { type = string default = "myregistry" diff --git a/test/bats/azure-test.bats b/test/bats/azure-test.bats index bf68b411b..a0eb9ae43 100644 --- a/test/bats/azure-test.bats +++ b/test/bats/azure-test.bats @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/usr/bin/env bats load helpers diff --git a/test/bats/base-test.bats b/test/bats/base-test.bats index deb02cc61..45fae7cba 100644 --- a/test/bats/base-test.bats +++ b/test/bats/base-test.bats @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/usr/bin/env bats load helpers diff --git a/test/bats/cli-test.bats b/test/bats/cli-test.bats index 988abb808..531e82995 100644 --- a/test/bats/cli-test.bats +++ b/test/bats/cli-test.bats @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/usr/bin/env bats load helpers diff --git a/test/bats/helpers.bash b/test/bats/helpers.bash index 755ea4fc2..d685a2ee1 100644 --- a/test/bats/helpers.bash +++ b/test/bats/helpers.bash @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/bin/bash assert_success() { diff --git a/test/bats/high-availability.bats b/test/bats/high-availability.bats index f33f9a9c2..22670ae9c 100644 --- a/test/bats/high-availability.bats +++ b/test/bats/high-availability.bats @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/usr/bin/env bats load helpers diff --git a/test/bats/plugin-test.bats b/test/bats/plugin-test.bats index 02cdc0564..bb94a750a 100644 --- a/test/bats/plugin-test.bats +++ b/test/bats/plugin-test.bats @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/usr/bin/env bats load helpers diff --git a/test/bats/quickstart-test.bats b/test/bats/quickstart-test.bats index fc7c35113..e6c25cc14 100644 --- a/test/bats/quickstart-test.bats +++ b/test/bats/quickstart-test.bats @@ -1,3 +1,16 @@ +# Copyright The Ratify Authors. +# Licensed 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. + #!/usr/bin/env bats load helpers