From 0215b620cd9106b0ed17ff72fef895bc7502a559 Mon Sep 17 00:00:00 2001 From: mrjoelkamp Date: Thu, 17 Oct 2024 13:40:17 -0500 Subject: [PATCH 1/3] chore: apply license headers --- attestation/attestation.go | 15 +++++++++++++++ attestation/attestation_test.go | 15 +++++++++++++++ attestation/example_attestation_manifest_test.go | 15 +++++++++++++++ attestation/layout.go | 15 +++++++++++++++ attestation/layout_test.go | 15 +++++++++++++++ attestation/mock.go | 15 +++++++++++++++ attestation/referrers.go | 15 +++++++++++++++ attestation/referrers_test.go | 15 +++++++++++++++ attestation/registry.go | 15 +++++++++++++++ attestation/registry_test.go | 15 +++++++++++++++ attestation/resolver.go | 15 +++++++++++++++ attestation/sign.go | 15 +++++++++++++++ attestation/sign_test.go | 15 +++++++++++++++ attestation/types.go | 15 +++++++++++++++ attestation/types_test.go | 15 +++++++++++++++ attestation/verifier.go | 15 +++++++++++++++ attestation/verifier_test.go | 15 +++++++++++++++ attestation/verify.go | 15 +++++++++++++++ attestation/verify_test.go | 15 +++++++++++++++ attestation/vsa.go | 15 +++++++++++++++ example_sign_test.go | 15 +++++++++++++++ example_verify_test.go | 15 +++++++++++++++ internal/embed/root.go | 15 +++++++++++++++ internal/test/test.go | 15 +++++++++++++++ internal/util/crypto.go | 15 +++++++++++++++ mapping/mapping.go | 15 +++++++++++++++ mapping/mapping_test.go | 15 +++++++++++++++ mapping/match.go | 15 +++++++++++++++ mapping/match_test.go | 15 +++++++++++++++ mapping/types.go | 15 +++++++++++++++ mirror/example_mirror_test.go | 15 +++++++++++++++ mirror/metadata.go | 15 +++++++++++++++ mirror/metadata_test.go | 15 +++++++++++++++ mirror/mirror.go | 15 +++++++++++++++ mirror/targets.go | 15 +++++++++++++++ mirror/targets_test.go | 15 +++++++++++++++ mirror/types.go | 15 +++++++++++++++ oci/authn.go | 15 +++++++++++++++ oci/authn_test.go | 15 +++++++++++++++ oci/oci.go | 15 +++++++++++++++ oci/oci_test.go | 15 +++++++++++++++ oci/output.go | 15 +++++++++++++++ oci/output_test.go | 15 +++++++++++++++ oci/registry.go | 15 +++++++++++++++ oci/resolver.go | 15 +++++++++++++++ oci/types.go | 15 +++++++++++++++ oci/types_test.go | 15 +++++++++++++++ policy/evaluator.go | 15 +++++++++++++++ policy/mock.go | 15 +++++++++++++++ policy/policy.go | 15 +++++++++++++++ policy/policy_test.go | 15 +++++++++++++++ policy/rego.go | 15 +++++++++++++++ policy/rego_test.go | 15 +++++++++++++++ policy/resolver.go | 15 +++++++++++++++ policy/resolver_test.go | 15 +++++++++++++++ policy/types.go | 15 +++++++++++++++ scripts/gen-testdata.sh | 15 +++++++++++++++ sign.go | 15 +++++++++++++++ sign_test.go | 15 +++++++++++++++ signerverifier/aws.go | 15 +++++++++++++++ signerverifier/common.go | 15 +++++++++++++++ signerverifier/ecdsa.go | 15 +++++++++++++++ signerverifier/gcp.go | 15 +++++++++++++++ signerverifier/gcp_test.go | 15 +++++++++++++++ signerverifier/keyid.go | 15 +++++++++++++++ signerverifier/parse.go | 15 +++++++++++++++ template/bash.txt | 13 +++++++++++++ template/dockerfile.txt | 13 +++++++++++++ template/go.txt | 15 +++++++++++++++ template/makefile.txt | 13 +++++++++++++ test/Dockerfile | 13 +++++++++++++ tlog/mock.go | 15 +++++++++++++++ tlog/rekor.go | 15 +++++++++++++++ tlog/rekor_test.go | 15 +++++++++++++++ tlog/tl.go | 15 +++++++++++++++ tlog/tl_test.go | 15 +++++++++++++++ tuf/example_registry_test.go | 15 +++++++++++++++ tuf/mock.go | 15 +++++++++++++++ tuf/registry.go | 15 +++++++++++++++ tuf/registry_test.go | 15 +++++++++++++++ tuf/tuf.go | 15 +++++++++++++++ tuf/tuf_test.go | 15 +++++++++++++++ tuf/version.go | 15 +++++++++++++++ tuf/version_test.go | 15 +++++++++++++++ types.go | 15 +++++++++++++++ useragent/useragent.go | 15 +++++++++++++++ useragent/useragent_test.go | 15 +++++++++++++++ verify.go | 15 +++++++++++++++ verify_test.go | 15 +++++++++++++++ version/version.go | 15 +++++++++++++++ 90 files changed, 1342 insertions(+) create mode 100644 template/bash.txt create mode 100644 template/dockerfile.txt create mode 100644 template/go.txt create mode 100644 template/makefile.txt diff --git a/attestation/attestation.go b/attestation/attestation.go index 7f040cfc..4eb1f82b 100644 --- a/attestation/attestation.go +++ b/attestation/attestation.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/attestation_test.go b/attestation/attestation_test.go index 362b3ab4..2d70a283 100644 --- a/attestation/attestation_test.go +++ b/attestation/attestation_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/example_attestation_manifest_test.go b/attestation/example_attestation_manifest_test.go index a8e0ece5..b434f0f5 100644 --- a/attestation/example_attestation_manifest_test.go +++ b/attestation/example_attestation_manifest_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/layout.go b/attestation/layout.go index 94a72f3a..b3fbb15c 100644 --- a/attestation/layout.go +++ b/attestation/layout.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/layout_test.go b/attestation/layout_test.go index 4be30fef..d05a3c9d 100644 --- a/attestation/layout_test.go +++ b/attestation/layout_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/mock.go b/attestation/mock.go index 98dacc98..a1ef3b7a 100644 --- a/attestation/mock.go +++ b/attestation/mock.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/referrers.go b/attestation/referrers.go index 4c109ed4..1d93541f 100644 --- a/attestation/referrers.go +++ b/attestation/referrers.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/referrers_test.go b/attestation/referrers_test.go index c54d9199..d0e04f80 100644 --- a/attestation/referrers_test.go +++ b/attestation/referrers_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/registry.go b/attestation/registry.go index 73639d34..f772f132 100644 --- a/attestation/registry.go +++ b/attestation/registry.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/registry_test.go b/attestation/registry_test.go index dbcb128b..89e29bc2 100644 --- a/attestation/registry_test.go +++ b/attestation/registry_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/resolver.go b/attestation/resolver.go index 7eae5161..f618c358 100644 --- a/attestation/resolver.go +++ b/attestation/resolver.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/sign.go b/attestation/sign.go index 55eea11b..09bc2367 100644 --- a/attestation/sign.go +++ b/attestation/sign.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/sign_test.go b/attestation/sign_test.go index 690998f5..c7ce2be9 100644 --- a/attestation/sign_test.go +++ b/attestation/sign_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/types.go b/attestation/types.go index 043312df..bf5d3f52 100644 --- a/attestation/types.go +++ b/attestation/types.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/types_test.go b/attestation/types_test.go index 3de793e4..a17fafe1 100644 --- a/attestation/types_test.go +++ b/attestation/types_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/verifier.go b/attestation/verifier.go index 482aefaa..c7316984 100644 --- a/attestation/verifier.go +++ b/attestation/verifier.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/verifier_test.go b/attestation/verifier_test.go index d2b6d1e8..49e45352 100644 --- a/attestation/verifier_test.go +++ b/attestation/verifier_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/verify.go b/attestation/verify.go index fbd47d6c..fac6b1e6 100644 --- a/attestation/verify.go +++ b/attestation/verify.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/attestation/verify_test.go b/attestation/verify_test.go index 0e3f0fcb..40217a02 100644 --- a/attestation/verify_test.go +++ b/attestation/verify_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation_test import ( diff --git a/attestation/vsa.go b/attestation/vsa.go index d334d03c..a0b291f1 100644 --- a/attestation/vsa.go +++ b/attestation/vsa.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attestation import ( diff --git a/example_sign_test.go b/example_sign_test.go index 97ab9a70..ed5a0fbf 100644 --- a/example_sign_test.go +++ b/example_sign_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest_test import ( diff --git a/example_verify_test.go b/example_verify_test.go index b91deeea..1b1fc0cd 100644 --- a/example_verify_test.go +++ b/example_verify_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest_test import ( diff --git a/internal/embed/root.go b/internal/embed/root.go index 9bf20aee..8e16d8bc 100644 --- a/internal/embed/root.go +++ b/internal/embed/root.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 embed import ( diff --git a/internal/test/test.go b/internal/test/test.go index dbc2cbf6..1a44b2f5 100644 --- a/internal/test/test.go +++ b/internal/test/test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 test import ( diff --git a/internal/util/crypto.go b/internal/util/crypto.go index f28d63a5..419c0b07 100644 --- a/internal/util/crypto.go +++ b/internal/util/crypto.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 util import ( diff --git a/mapping/mapping.go b/mapping/mapping.go index 342454a3..1d0b8008 100644 --- a/mapping/mapping.go +++ b/mapping/mapping.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mapping import ( diff --git a/mapping/mapping_test.go b/mapping/mapping_test.go index 06d4a946..5ec7f913 100644 --- a/mapping/mapping_test.go +++ b/mapping/mapping_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mapping import ( diff --git a/mapping/match.go b/mapping/match.go index cfac8b62..4ebb7628 100644 --- a/mapping/match.go +++ b/mapping/match.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mapping import ( diff --git a/mapping/match_test.go b/mapping/match_test.go index 31f0c613..69223a30 100644 --- a/mapping/match_test.go +++ b/mapping/match_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mapping import ( diff --git a/mapping/types.go b/mapping/types.go index 96192e35..aefc7487 100644 --- a/mapping/types.go +++ b/mapping/types.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mapping import ( diff --git a/mirror/example_mirror_test.go b/mirror/example_mirror_test.go index 51ca46de..f779a426 100644 --- a/mirror/example_mirror_test.go +++ b/mirror/example_mirror_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror_test import ( diff --git a/mirror/metadata.go b/mirror/metadata.go index fc499481..30d40529 100644 --- a/mirror/metadata.go +++ b/mirror/metadata.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror import ( diff --git a/mirror/metadata_test.go b/mirror/metadata_test.go index fed45d31..4dcb6545 100644 --- a/mirror/metadata_test.go +++ b/mirror/metadata_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror import ( diff --git a/mirror/mirror.go b/mirror/mirror.go index 5cb3cff7..5e25252f 100644 --- a/mirror/mirror.go +++ b/mirror/mirror.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror import ( diff --git a/mirror/targets.go b/mirror/targets.go index f1895797..eb098f6b 100644 --- a/mirror/targets.go +++ b/mirror/targets.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror import ( diff --git a/mirror/targets_test.go b/mirror/targets_test.go index 22dc7d2b..9d91e086 100644 --- a/mirror/targets_test.go +++ b/mirror/targets_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror import ( diff --git a/mirror/types.go b/mirror/types.go index 865c17f5..2c3843ee 100644 --- a/mirror/types.go +++ b/mirror/types.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 mirror import ( diff --git a/oci/authn.go b/oci/authn.go index 98452a03..83fb0a89 100644 --- a/oci/authn.go +++ b/oci/authn.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/oci/authn_test.go b/oci/authn_test.go index e415d7ad..a3ed9921 100644 --- a/oci/authn_test.go +++ b/oci/authn_test.go @@ -1,5 +1,20 @@ //go:build e2e +/* + Copyright 2024 Docker attest 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 oci_test import ( diff --git a/oci/oci.go b/oci/oci.go index 85183fc2..a3b26046 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/oci/oci_test.go b/oci/oci_test.go index 65766d72..d1fb2794 100644 --- a/oci/oci_test.go +++ b/oci/oci_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci_test import ( diff --git a/oci/output.go b/oci/output.go index 66399eba..a419d3d5 100644 --- a/oci/output.go +++ b/oci/output.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/oci/output_test.go b/oci/output_test.go index e3138361..2c973512 100644 --- a/oci/output_test.go +++ b/oci/output_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci_test import ( diff --git a/oci/registry.go b/oci/registry.go index b461b4b6..48928e2f 100644 --- a/oci/registry.go +++ b/oci/registry.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/oci/resolver.go b/oci/resolver.go index a5aaae5f..32eaa033 100644 --- a/oci/resolver.go +++ b/oci/resolver.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/oci/types.go b/oci/types.go index 78e6f62d..cfd80f48 100644 --- a/oci/types.go +++ b/oci/types.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/oci/types_test.go b/oci/types_test.go index 704fdd9a..0abe4585 100644 --- a/oci/types_test.go +++ b/oci/types_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 oci import ( diff --git a/policy/evaluator.go b/policy/evaluator.go index 4e28c37c..33089743 100644 --- a/policy/evaluator.go +++ b/policy/evaluator.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/policy/mock.go b/policy/mock.go index bacd5ff4..7c9d5561 100644 --- a/policy/mock.go +++ b/policy/mock.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/policy/policy.go b/policy/policy.go index d63ab6af..ecc1d62d 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/policy/policy_test.go b/policy/policy_test.go index c2d43c6a..478e46f0 100644 --- a/policy/policy_test.go +++ b/policy/policy_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy_test import ( diff --git a/policy/rego.go b/policy/rego.go index ca4b8f91..bd7ef918 100644 --- a/policy/rego.go +++ b/policy/rego.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/policy/rego_test.go b/policy/rego_test.go index 5f44083f..5c9a9911 100644 --- a/policy/rego_test.go +++ b/policy/rego_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/policy/resolver.go b/policy/resolver.go index 66cfb475..40719b08 100644 --- a/policy/resolver.go +++ b/policy/resolver.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/policy/resolver_test.go b/policy/resolver_test.go index 36412c5f..1eb2c541 100644 --- a/policy/resolver_test.go +++ b/policy/resolver_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy_test import ( diff --git a/policy/types.go b/policy/types.go index a14e56a0..0c82c556 100644 --- a/policy/types.go +++ b/policy/types.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 policy import ( diff --git a/scripts/gen-testdata.sh b/scripts/gen-testdata.sh index 47621afa..4535ab9e 100755 --- a/scripts/gen-testdata.sh +++ b/scripts/gen-testdata.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2024 Docker attest 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. + set -eo pipefail echo "Starting the process to generate testdata..." diff --git a/sign.go b/sign.go index 832cca2d..86aa3d3a 100644 --- a/sign.go +++ b/sign.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest import ( diff --git a/sign_test.go b/sign_test.go index 14c1e6a7..dfd079fc 100644 --- a/sign_test.go +++ b/sign_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest import ( diff --git a/signerverifier/aws.go b/signerverifier/aws.go index a61568cb..4a41f055 100644 --- a/signerverifier/aws.go +++ b/signerverifier/aws.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/signerverifier/common.go b/signerverifier/common.go index 0747460c..23598228 100644 --- a/signerverifier/common.go +++ b/signerverifier/common.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/signerverifier/ecdsa.go b/signerverifier/ecdsa.go index 18bf9c7a..025ad581 100644 --- a/signerverifier/ecdsa.go +++ b/signerverifier/ecdsa.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/signerverifier/gcp.go b/signerverifier/gcp.go index 0768451f..3bbaf620 100644 --- a/signerverifier/gcp.go +++ b/signerverifier/gcp.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/signerverifier/gcp_test.go b/signerverifier/gcp_test.go index e603ab9a..64e934ef 100644 --- a/signerverifier/gcp_test.go +++ b/signerverifier/gcp_test.go @@ -1,5 +1,20 @@ //go:build e2e +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/signerverifier/keyid.go b/signerverifier/keyid.go index f709f7dc..dced9bad 100644 --- a/signerverifier/keyid.go +++ b/signerverifier/keyid.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/signerverifier/parse.go b/signerverifier/parse.go index 93e042e9..274b81b1 100644 --- a/signerverifier/parse.go +++ b/signerverifier/parse.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 signerverifier import ( diff --git a/template/bash.txt b/template/bash.txt new file mode 100644 index 00000000..639a2ec2 --- /dev/null +++ b/template/bash.txt @@ -0,0 +1,13 @@ +# Copyright 2024 Docker attest 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. diff --git a/template/dockerfile.txt b/template/dockerfile.txt new file mode 100644 index 00000000..4f1f175d --- /dev/null +++ b/template/dockerfile.txt @@ -0,0 +1,13 @@ +# Copyright 2024 Docker attest 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. diff --git a/template/go.txt b/template/go.txt new file mode 100644 index 00000000..f3db7e96 --- /dev/null +++ b/template/go.txt @@ -0,0 +1,15 @@ +/* + Copyright 2024 Docker attest 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. +*/ diff --git a/template/makefile.txt b/template/makefile.txt new file mode 100644 index 00000000..4f1f175d --- /dev/null +++ b/template/makefile.txt @@ -0,0 +1,13 @@ +# Copyright 2024 Docker attest 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. diff --git a/test/Dockerfile b/test/Dockerfile index 274a7c6a..dbc42eba 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,3 +1,16 @@ +# Copyright 2024 Docker attest 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 build RUN echo "hello world" > /tmp/hello.txt diff --git a/tlog/mock.go b/tlog/mock.go index 9126718e..724d80df 100644 --- a/tlog/mock.go +++ b/tlog/mock.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tlog import ( diff --git a/tlog/rekor.go b/tlog/rekor.go index 2ae536ba..284423c6 100644 --- a/tlog/rekor.go +++ b/tlog/rekor.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tlog import ( diff --git a/tlog/rekor_test.go b/tlog/rekor_test.go index 50ef0bb9..de7a8413 100644 --- a/tlog/rekor_test.go +++ b/tlog/rekor_test.go @@ -1,5 +1,20 @@ //go:build e2e +/* + Copyright 2024 Docker attest 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 tlog import ( diff --git a/tlog/tl.go b/tlog/tl.go index 46a2dc7e..6b8c1e1a 100644 --- a/tlog/tl.go +++ b/tlog/tl.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tlog import ( diff --git a/tlog/tl_test.go b/tlog/tl_test.go index 15f94129..bdd76774 100644 --- a/tlog/tl_test.go +++ b/tlog/tl_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tlog import ( diff --git a/tuf/example_registry_test.go b/tuf/example_registry_test.go index d67880bc..c6c5466e 100644 --- a/tuf/example_registry_test.go +++ b/tuf/example_registry_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf_test import ( diff --git a/tuf/mock.go b/tuf/mock.go index f0245356..eceee428 100644 --- a/tuf/mock.go +++ b/tuf/mock.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/tuf/registry.go b/tuf/registry.go index c59593f2..20345d37 100644 --- a/tuf/registry.go +++ b/tuf/registry.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/tuf/registry_test.go b/tuf/registry_test.go index f7b40949..02aac28a 100644 --- a/tuf/registry_test.go +++ b/tuf/registry_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/tuf/tuf.go b/tuf/tuf.go index e54911c4..0bf8d56a 100644 --- a/tuf/tuf.go +++ b/tuf/tuf.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/tuf/tuf_test.go b/tuf/tuf_test.go index 9edb7843..383ba1c6 100644 --- a/tuf/tuf_test.go +++ b/tuf/tuf_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/tuf/version.go b/tuf/version.go index 671cf5b5..89a980d6 100644 --- a/tuf/version.go +++ b/tuf/version.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/tuf/version_test.go b/tuf/version_test.go index 46c21bd4..f94380a6 100644 --- a/tuf/version_test.go +++ b/tuf/version_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 tuf import ( diff --git a/types.go b/types.go index 38242083..ce63ee8e 100644 --- a/types.go +++ b/types.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest import ( diff --git a/useragent/useragent.go b/useragent/useragent.go index f551f4a1..ed9be2e7 100644 --- a/useragent/useragent.go +++ b/useragent/useragent.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 useragent import ( diff --git a/useragent/useragent_test.go b/useragent/useragent_test.go index 3cc8d92c..7a66a4b0 100644 --- a/useragent/useragent_test.go +++ b/useragent/useragent_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 useragent import ( diff --git a/verify.go b/verify.go index ac2c0d65..83a26ec2 100644 --- a/verify.go +++ b/verify.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest import ( diff --git a/verify_test.go b/verify_test.go index ff51fd53..3dd1ab3a 100644 --- a/verify_test.go +++ b/verify_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 attest import ( diff --git a/version/version.go b/version/version.go index 166dcaa0..fc03f0f5 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest 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 version import ( From 6fd73fe45ddb2082d5692f57b21b253da166c410 Mon Sep 17 00:00:00 2001 From: mrjoelkamp Date: Thu, 17 Oct 2024 14:05:05 -0500 Subject: [PATCH 2/3] chore: add notice --- NOTICE | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 NOTICE diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..6e73404b --- /dev/null +++ b/NOTICE @@ -0,0 +1,15 @@ +Docker attest +Copyright 2024 Docker attest authors + +This product includes software developed at Docker, Inc. (https://www.docker.com). + +The following is courtesy of our legal counsel: + +Use and transfer of Docker may be subject to certain restrictions by the +United States and other governments. +It is your responsibility to ensure that your use and/or transfer does not +violate applicable laws. + +For more information, please see https://www.bis.doc.gov + +See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. From 01a6a2ab7d47ccb5fd07d8b5b16b7001327c1f53 Mon Sep 17 00:00:00 2001 From: mrjoelkamp Date: Fri, 18 Oct 2024 09:25:31 -0500 Subject: [PATCH 3/3] refactor: remove copyright year; add newline --- NOTICE | 2 +- attestation/attestation.go | 3 ++- attestation/attestation_test.go | 3 ++- attestation/example_attestation_manifest_test.go | 3 ++- attestation/layout.go | 3 ++- attestation/layout_test.go | 3 ++- attestation/mock.go | 3 ++- attestation/referrers.go | 3 ++- attestation/referrers_test.go | 3 ++- attestation/registry.go | 3 ++- attestation/registry_test.go | 3 ++- attestation/resolver.go | 3 ++- attestation/sign.go | 3 ++- attestation/sign_test.go | 3 ++- attestation/types.go | 3 ++- attestation/types_test.go | 3 ++- attestation/verifier.go | 3 ++- attestation/verifier_test.go | 3 ++- attestation/verify.go | 3 ++- attestation/verify_test.go | 3 ++- attestation/vsa.go | 3 ++- example_sign_test.go | 3 ++- example_verify_test.go | 3 ++- internal/embed/root.go | 3 ++- internal/test/test.go | 3 ++- internal/util/crypto.go | 3 ++- mapping/mapping.go | 3 ++- mapping/mapping_test.go | 3 ++- mapping/match.go | 3 ++- mapping/match_test.go | 3 ++- mapping/types.go | 3 ++- mirror/example_mirror_test.go | 3 ++- mirror/metadata.go | 3 ++- mirror/metadata_test.go | 3 ++- mirror/mirror.go | 3 ++- mirror/targets.go | 3 ++- mirror/targets_test.go | 3 ++- mirror/types.go | 3 ++- oci/authn.go | 3 ++- oci/authn_test.go | 3 ++- oci/oci.go | 3 ++- oci/oci_test.go | 3 ++- oci/output.go | 3 ++- oci/output_test.go | 3 ++- oci/registry.go | 3 ++- oci/resolver.go | 3 ++- oci/types.go | 3 ++- oci/types_test.go | 3 ++- policy/evaluator.go | 3 ++- policy/mock.go | 3 ++- policy/policy.go | 3 ++- policy/policy_test.go | 3 ++- policy/rego.go | 3 ++- policy/rego_test.go | 3 ++- policy/resolver.go | 3 ++- policy/resolver_test.go | 3 ++- policy/types.go | 3 ++- scripts/gen-testdata.sh | 2 +- sign.go | 3 ++- sign_test.go | 3 ++- signerverifier/aws.go | 3 ++- signerverifier/common.go | 3 ++- signerverifier/ecdsa.go | 3 ++- signerverifier/gcp.go | 3 ++- signerverifier/gcp_test.go | 3 ++- signerverifier/keyid.go | 3 ++- signerverifier/parse.go | 3 ++- template/bash.txt | 2 +- template/dockerfile.txt | 2 +- template/go.txt | 3 ++- template/makefile.txt | 2 +- test/Dockerfile | 2 +- tlog/mock.go | 3 ++- tlog/rekor.go | 3 ++- tlog/rekor_test.go | 3 ++- tlog/tl.go | 3 ++- tlog/tl_test.go | 3 ++- tuf/example_registry_test.go | 3 ++- tuf/mock.go | 3 ++- tuf/registry.go | 3 ++- tuf/registry_test.go | 3 ++- tuf/tuf.go | 3 ++- tuf/tuf_test.go | 3 ++- tuf/version.go | 3 ++- tuf/version_test.go | 3 ++- types.go | 3 ++- useragent/useragent.go | 3 ++- useragent/useragent_test.go | 3 ++- verify.go | 3 ++- verify_test.go | 3 ++- version/version.go | 3 ++- 91 files changed, 176 insertions(+), 91 deletions(-) diff --git a/NOTICE b/NOTICE index 6e73404b..c54816f6 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ Docker attest -Copyright 2024 Docker attest authors +Copyright Docker attest authors This product includes software developed at Docker, Inc. (https://www.docker.com). diff --git a/attestation/attestation.go b/attestation/attestation.go index 4eb1f82b..1513ba15 100644 --- a/attestation/attestation.go +++ b/attestation/attestation.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/attestation_test.go b/attestation/attestation_test.go index 2d70a283..c35d029f 100644 --- a/attestation/attestation_test.go +++ b/attestation/attestation_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/example_attestation_manifest_test.go b/attestation/example_attestation_manifest_test.go index b434f0f5..a96b855e 100644 --- a/attestation/example_attestation_manifest_test.go +++ b/attestation/example_attestation_manifest_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/layout.go b/attestation/layout.go index b3fbb15c..4572458f 100644 --- a/attestation/layout.go +++ b/attestation/layout.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/layout_test.go b/attestation/layout_test.go index d05a3c9d..a7e62730 100644 --- a/attestation/layout_test.go +++ b/attestation/layout_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/mock.go b/attestation/mock.go index a1ef3b7a..47f6cf6f 100644 --- a/attestation/mock.go +++ b/attestation/mock.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/referrers.go b/attestation/referrers.go index 1d93541f..573d2e65 100644 --- a/attestation/referrers.go +++ b/attestation/referrers.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/referrers_test.go b/attestation/referrers_test.go index d0e04f80..0b47109a 100644 --- a/attestation/referrers_test.go +++ b/attestation/referrers_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/registry.go b/attestation/registry.go index f772f132..74b7b3b7 100644 --- a/attestation/registry.go +++ b/attestation/registry.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/registry_test.go b/attestation/registry_test.go index 89e29bc2..10853d8a 100644 --- a/attestation/registry_test.go +++ b/attestation/registry_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/resolver.go b/attestation/resolver.go index f618c358..6d2172fe 100644 --- a/attestation/resolver.go +++ b/attestation/resolver.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/sign.go b/attestation/sign.go index 09bc2367..e14d7c39 100644 --- a/attestation/sign.go +++ b/attestation/sign.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/sign_test.go b/attestation/sign_test.go index c7ce2be9..16711ad8 100644 --- a/attestation/sign_test.go +++ b/attestation/sign_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/types.go b/attestation/types.go index bf5d3f52..53eed0a8 100644 --- a/attestation/types.go +++ b/attestation/types.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/types_test.go b/attestation/types_test.go index a17fafe1..5dfb6fe7 100644 --- a/attestation/types_test.go +++ b/attestation/types_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/verifier.go b/attestation/verifier.go index c7316984..acfb910e 100644 --- a/attestation/verifier.go +++ b/attestation/verifier.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/verifier_test.go b/attestation/verifier_test.go index 49e45352..5ef285c5 100644 --- a/attestation/verifier_test.go +++ b/attestation/verifier_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/verify.go b/attestation/verify.go index fac6b1e6..c8d947ba 100644 --- a/attestation/verify.go +++ b/attestation/verify.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/attestation/verify_test.go b/attestation/verify_test.go index 40217a02..c9db59af 100644 --- a/attestation/verify_test.go +++ b/attestation/verify_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation_test import ( diff --git a/attestation/vsa.go b/attestation/vsa.go index a0b291f1..5faa19a2 100644 --- a/attestation/vsa.go +++ b/attestation/vsa.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attestation import ( diff --git a/example_sign_test.go b/example_sign_test.go index ed5a0fbf..1f6d6c38 100644 --- a/example_sign_test.go +++ b/example_sign_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest_test import ( diff --git a/example_verify_test.go b/example_verify_test.go index 1b1fc0cd..d228ed43 100644 --- a/example_verify_test.go +++ b/example_verify_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest_test import ( diff --git a/internal/embed/root.go b/internal/embed/root.go index 8e16d8bc..680ccc10 100644 --- a/internal/embed/root.go +++ b/internal/embed/root.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package embed import ( diff --git a/internal/test/test.go b/internal/test/test.go index 1a44b2f5..a760f19a 100644 --- a/internal/test/test.go +++ b/internal/test/test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package test import ( diff --git a/internal/util/crypto.go b/internal/util/crypto.go index 419c0b07..e7d90b34 100644 --- a/internal/util/crypto.go +++ b/internal/util/crypto.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package util import ( diff --git a/mapping/mapping.go b/mapping/mapping.go index 1d0b8008..8c9ea28e 100644 --- a/mapping/mapping.go +++ b/mapping/mapping.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mapping import ( diff --git a/mapping/mapping_test.go b/mapping/mapping_test.go index 5ec7f913..8cd45404 100644 --- a/mapping/mapping_test.go +++ b/mapping/mapping_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mapping import ( diff --git a/mapping/match.go b/mapping/match.go index 4ebb7628..755bd48e 100644 --- a/mapping/match.go +++ b/mapping/match.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mapping import ( diff --git a/mapping/match_test.go b/mapping/match_test.go index 69223a30..6d0a89a4 100644 --- a/mapping/match_test.go +++ b/mapping/match_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mapping import ( diff --git a/mapping/types.go b/mapping/types.go index aefc7487..9a919b3b 100644 --- a/mapping/types.go +++ b/mapping/types.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mapping import ( diff --git a/mirror/example_mirror_test.go b/mirror/example_mirror_test.go index f779a426..a3f61d0c 100644 --- a/mirror/example_mirror_test.go +++ b/mirror/example_mirror_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror_test import ( diff --git a/mirror/metadata.go b/mirror/metadata.go index 30d40529..9f501fdf 100644 --- a/mirror/metadata.go +++ b/mirror/metadata.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror import ( diff --git a/mirror/metadata_test.go b/mirror/metadata_test.go index 4dcb6545..d1af5aac 100644 --- a/mirror/metadata_test.go +++ b/mirror/metadata_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror import ( diff --git a/mirror/mirror.go b/mirror/mirror.go index 5e25252f..4a85627a 100644 --- a/mirror/mirror.go +++ b/mirror/mirror.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror import ( diff --git a/mirror/targets.go b/mirror/targets.go index eb098f6b..ac2182f3 100644 --- a/mirror/targets.go +++ b/mirror/targets.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror import ( diff --git a/mirror/targets_test.go b/mirror/targets_test.go index 9d91e086..c21bd505 100644 --- a/mirror/targets_test.go +++ b/mirror/targets_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror import ( diff --git a/mirror/types.go b/mirror/types.go index 2c3843ee..a20d0aff 100644 --- a/mirror/types.go +++ b/mirror/types.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package mirror import ( diff --git a/oci/authn.go b/oci/authn.go index 83fb0a89..91da425f 100644 --- a/oci/authn.go +++ b/oci/authn.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/oci/authn_test.go b/oci/authn_test.go index a3ed9921..fcfbd33c 100644 --- a/oci/authn_test.go +++ b/oci/authn_test.go @@ -1,7 +1,7 @@ //go:build e2e /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -15,6 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci_test import ( diff --git a/oci/oci.go b/oci/oci.go index a3b26046..bafd738a 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/oci/oci_test.go b/oci/oci_test.go index d1fb2794..4b275bd3 100644 --- a/oci/oci_test.go +++ b/oci/oci_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci_test import ( diff --git a/oci/output.go b/oci/output.go index a419d3d5..091fb566 100644 --- a/oci/output.go +++ b/oci/output.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/oci/output_test.go b/oci/output_test.go index 2c973512..f971f835 100644 --- a/oci/output_test.go +++ b/oci/output_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci_test import ( diff --git a/oci/registry.go b/oci/registry.go index 48928e2f..3c6fb11a 100644 --- a/oci/registry.go +++ b/oci/registry.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/oci/resolver.go b/oci/resolver.go index 32eaa033..3ad12209 100644 --- a/oci/resolver.go +++ b/oci/resolver.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/oci/types.go b/oci/types.go index cfd80f48..8750673c 100644 --- a/oci/types.go +++ b/oci/types.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/oci/types_test.go b/oci/types_test.go index 0abe4585..9d39820e 100644 --- a/oci/types_test.go +++ b/oci/types_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package oci import ( diff --git a/policy/evaluator.go b/policy/evaluator.go index 33089743..2ec28617 100644 --- a/policy/evaluator.go +++ b/policy/evaluator.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/policy/mock.go b/policy/mock.go index 7c9d5561..a11f069d 100644 --- a/policy/mock.go +++ b/policy/mock.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/policy/policy.go b/policy/policy.go index ecc1d62d..1051b9ed 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/policy/policy_test.go b/policy/policy_test.go index 478e46f0..7d1b6c27 100644 --- a/policy/policy_test.go +++ b/policy/policy_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy_test import ( diff --git a/policy/rego.go b/policy/rego.go index bd7ef918..39c38672 100644 --- a/policy/rego.go +++ b/policy/rego.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/policy/rego_test.go b/policy/rego_test.go index 5c9a9911..a66198cd 100644 --- a/policy/rego_test.go +++ b/policy/rego_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/policy/resolver.go b/policy/resolver.go index 40719b08..61694b6d 100644 --- a/policy/resolver.go +++ b/policy/resolver.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/policy/resolver_test.go b/policy/resolver_test.go index 1eb2c541..9d34d347 100644 --- a/policy/resolver_test.go +++ b/policy/resolver_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy_test import ( diff --git a/policy/types.go b/policy/types.go index 0c82c556..ff92fd06 100644 --- a/policy/types.go +++ b/policy/types.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package policy import ( diff --git a/scripts/gen-testdata.sh b/scripts/gen-testdata.sh index 4535ab9e..97c8acfe 100755 --- a/scripts/gen-testdata.sh +++ b/scripts/gen-testdata.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2024 Docker attest authors +# Copyright Docker attest authors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sign.go b/sign.go index 86aa3d3a..cd961140 100644 --- a/sign.go +++ b/sign.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest import ( diff --git a/sign_test.go b/sign_test.go index dfd079fc..3535abae 100644 --- a/sign_test.go +++ b/sign_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest import ( diff --git a/signerverifier/aws.go b/signerverifier/aws.go index 4a41f055..0bd295df 100644 --- a/signerverifier/aws.go +++ b/signerverifier/aws.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/signerverifier/common.go b/signerverifier/common.go index 23598228..414e0c68 100644 --- a/signerverifier/common.go +++ b/signerverifier/common.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/signerverifier/ecdsa.go b/signerverifier/ecdsa.go index 025ad581..b48e6b9d 100644 --- a/signerverifier/ecdsa.go +++ b/signerverifier/ecdsa.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/signerverifier/gcp.go b/signerverifier/gcp.go index 3bbaf620..e6c624dc 100644 --- a/signerverifier/gcp.go +++ b/signerverifier/gcp.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/signerverifier/gcp_test.go b/signerverifier/gcp_test.go index 64e934ef..a6a74b4d 100644 --- a/signerverifier/gcp_test.go +++ b/signerverifier/gcp_test.go @@ -1,7 +1,7 @@ //go:build e2e /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -15,6 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/signerverifier/keyid.go b/signerverifier/keyid.go index dced9bad..f1cd31e1 100644 --- a/signerverifier/keyid.go +++ b/signerverifier/keyid.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/signerverifier/parse.go b/signerverifier/parse.go index 274b81b1..e30414e7 100644 --- a/signerverifier/parse.go +++ b/signerverifier/parse.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package signerverifier import ( diff --git a/template/bash.txt b/template/bash.txt index 639a2ec2..235dda99 100644 --- a/template/bash.txt +++ b/template/bash.txt @@ -1,4 +1,4 @@ -# Copyright 2024 Docker attest authors +# Copyright Docker attest authors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/template/dockerfile.txt b/template/dockerfile.txt index 4f1f175d..6efc0900 100644 --- a/template/dockerfile.txt +++ b/template/dockerfile.txt @@ -1,4 +1,4 @@ -# Copyright 2024 Docker attest authors +# Copyright Docker attest authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/template/go.txt b/template/go.txt index f3db7e96..5d8ba3a0 100644 --- a/template/go.txt +++ b/template/go.txt @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,3 +13,4 @@ See the License for the specific language governing permissions and limitations under the License. */ + diff --git a/template/makefile.txt b/template/makefile.txt index 4f1f175d..6efc0900 100644 --- a/template/makefile.txt +++ b/template/makefile.txt @@ -1,4 +1,4 @@ -# Copyright 2024 Docker attest authors +# Copyright Docker attest authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/Dockerfile b/test/Dockerfile index dbc42eba..c25b19d7 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,4 +1,4 @@ -# Copyright 2024 Docker attest authors +# Copyright Docker attest authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tlog/mock.go b/tlog/mock.go index 724d80df..7bfadd8f 100644 --- a/tlog/mock.go +++ b/tlog/mock.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tlog import ( diff --git a/tlog/rekor.go b/tlog/rekor.go index 284423c6..c7a2b5d2 100644 --- a/tlog/rekor.go +++ b/tlog/rekor.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tlog import ( diff --git a/tlog/rekor_test.go b/tlog/rekor_test.go index de7a8413..b7263c12 100644 --- a/tlog/rekor_test.go +++ b/tlog/rekor_test.go @@ -1,7 +1,7 @@ //go:build e2e /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -15,6 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tlog import ( diff --git a/tlog/tl.go b/tlog/tl.go index 6b8c1e1a..eb89c4d0 100644 --- a/tlog/tl.go +++ b/tlog/tl.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tlog import ( diff --git a/tlog/tl_test.go b/tlog/tl_test.go index bdd76774..c2470381 100644 --- a/tlog/tl_test.go +++ b/tlog/tl_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tlog import ( diff --git a/tuf/example_registry_test.go b/tuf/example_registry_test.go index c6c5466e..51c9a316 100644 --- a/tuf/example_registry_test.go +++ b/tuf/example_registry_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf_test import ( diff --git a/tuf/mock.go b/tuf/mock.go index eceee428..1df2ede7 100644 --- a/tuf/mock.go +++ b/tuf/mock.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/tuf/registry.go b/tuf/registry.go index 20345d37..51576289 100644 --- a/tuf/registry.go +++ b/tuf/registry.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/tuf/registry_test.go b/tuf/registry_test.go index 02aac28a..a77b5b0c 100644 --- a/tuf/registry_test.go +++ b/tuf/registry_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/tuf/tuf.go b/tuf/tuf.go index 0bf8d56a..003662b8 100644 --- a/tuf/tuf.go +++ b/tuf/tuf.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/tuf/tuf_test.go b/tuf/tuf_test.go index 383ba1c6..65b578b4 100644 --- a/tuf/tuf_test.go +++ b/tuf/tuf_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/tuf/version.go b/tuf/version.go index 89a980d6..3e1eb62b 100644 --- a/tuf/version.go +++ b/tuf/version.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/tuf/version_test.go b/tuf/version_test.go index f94380a6..2a46a536 100644 --- a/tuf/version_test.go +++ b/tuf/version_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package tuf import ( diff --git a/types.go b/types.go index ce63ee8e..4fe30d49 100644 --- a/types.go +++ b/types.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest import ( diff --git a/useragent/useragent.go b/useragent/useragent.go index ed9be2e7..db2e74a1 100644 --- a/useragent/useragent.go +++ b/useragent/useragent.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package useragent import ( diff --git a/useragent/useragent_test.go b/useragent/useragent_test.go index 7a66a4b0..3f921b7f 100644 --- a/useragent/useragent_test.go +++ b/useragent/useragent_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package useragent import ( diff --git a/verify.go b/verify.go index 83a26ec2..74d54bdd 100644 --- a/verify.go +++ b/verify.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest import ( diff --git a/verify_test.go b/verify_test.go index 3dd1ab3a..0f12f490 100644 --- a/verify_test.go +++ b/verify_test.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package attest import ( diff --git a/version/version.go b/version/version.go index fc03f0f5..c8821906 100644 --- a/version/version.go +++ b/version/version.go @@ -1,5 +1,5 @@ /* - Copyright 2024 Docker attest authors + Copyright Docker attest authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ + package version import (