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 7f040cf..4eb1f82 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 362b3ab..2d70a28 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 a8e0ece..b434f0f 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 94a72f3..b3fbb15 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 4be30fe..d05a3c9 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 98dacc9..a1ef3b7 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 4c109ed..1d93541 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 c54d919..d0e04f8 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 73639d3..f772f13 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 dbcb128..89e29bc 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 7eae516..f618c35 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 55eea11..09bc236 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 690998f..c7ce2be 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 043312d..bf5d3f5 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 3de793e..a17fafe 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 482aefa..c731698 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 d2b6d1e..49e4535 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 fbd47d6..fac6b1e 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 0e3f0fc..40217a0 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 d334d03..a0b291f 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 97ab9a7..ed5a0fb 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 b91deee..1b1fc0c 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 9bf20ae..8e16d8b 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 dbc2cbf..1a44b2f 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 f28d63a..419c0b0 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 342454a..1d0b800 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 06d4a94..5ec7f91 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 cfac8b6..4ebb762 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 31f0c61..69223a3 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 96192e3..aefc748 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 51ca46d..f779a42 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 fc49948..30d4052 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 fed45d3..4dcb654 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 5cb3cff..5e25252 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 f189579..eb098f6 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 22dc7d2..9d91e08 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 865c17f..2c3843e 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 98452a0..83fb0a8 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 e415d7a..a3ed992 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 85183fc..a3b2604 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 65766d7..d1fb279 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 66399eb..a419d3d 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 e313836..2c97351 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 b461b4b..48928e2 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 a5aaae5..32eaa03 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 78e6f62..cfd80f4 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 704fdd9..0abe458 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 4e28c37..3308974 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 bacd5ff..7c9d556 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 d63ab6a..ecc1d62 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 c2d43c6..478e46f 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 ca4b8f9..bd7ef91 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 5f44083..5c9a991 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 66cfb47..40719b0 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 36412c5..1eb2c54 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 a14e56a..0c82c55 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 47621af..4535ab9 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 832cca2..86aa3d3 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 14c1e6a..dfd079f 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 a61568c..4a41f05 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 0747460..2359822 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 18bf9c7..025ad58 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 0768451..3bbaf62 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 e603ab9..64e934e 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 f709f7d..dced9ba 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 93e042e..274b81b 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 0000000..639a2ec --- /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 0000000..4f1f175 --- /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 0000000..f3db7e9 --- /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 0000000..4f1f175 --- /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 274a7c6..dbc42eb 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 9126718..724d80d 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 2ae536b..284423c 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 50ef0bb..de7a841 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 46a2dc7..6b8c1e1 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 15f9412..bdd7677 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 d67880b..c6c5466 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 f024535..eceee42 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 c59593f..20345d3 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 f7b4094..02aac28 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 e54911c..0bf8d56 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 9edb784..383ba1c 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 671cf5b..89a980d 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 46c21bd..f94380a 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 3824208..ce63ee8 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 f551f4a..ed9be2e 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 3cc8d92..7a66a4b 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 ac2c0d6..83a26ec 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 ff51fd5..3dd1ab3 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 166dcaa..fc03f0f 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 0000000..6e73404 --- /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 6e73404..c54816f 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 4eb1f82..1513ba1 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 2d70a28..c35d029 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 b434f0f..a96b855 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 b3fbb15..4572458 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 d05a3c9..a7e6273 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 a1ef3b7..47f6cf6 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 1d93541..573d2e6 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 d0e04f8..0b47109 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 f772f13..74b7b3b 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 89e29bc..10853d8 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 f618c35..6d2172f 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 09bc236..e14d7c3 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 c7ce2be..16711ad 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 bf5d3f5..53eed0a 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 a17fafe..5dfb6fe 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 c731698..acfb910 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 49e4535..5ef285c 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 fac6b1e..c8d947b 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 40217a0..c9db59a 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 a0b291f..5faa19a 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 ed5a0fb..1f6d6c3 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 1b1fc0c..d228ed4 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 8e16d8b..680ccc1 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 1a44b2f..a760f19 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 419c0b0..e7d90b3 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 1d0b800..8c9ea28 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 5ec7f91..8cd4540 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 4ebb762..755bd48 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 69223a3..6d0a89a 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 aefc748..9a919b3 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 f779a42..a3f61d0 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 30d4052..9f501fd 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 4dcb654..d1af5aa 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 5e25252..4a85627 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 eb098f6..ac2182f 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 9d91e08..c21bd50 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 2c3843e..a20d0af 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 83fb0a8..91da425 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 a3ed992..fcfbd33 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 a3b2604..bafd738 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 d1fb279..4b275bd 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 a419d3d..091fb56 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 2c97351..f971f83 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 48928e2..3c6fb11 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 32eaa03..3ad1220 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 cfd80f4..8750673 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 0abe458..9d39820 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 3308974..2ec2861 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 7c9d556..a11f069 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 ecc1d62..1051b9e 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 478e46f..7d1b6c2 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 bd7ef91..39c3867 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 5c9a991..a66198c 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 40719b0..61694b6 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 1eb2c54..9d34d34 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 0c82c55..ff92fd0 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 4535ab9..97c8acf 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 86aa3d3..cd96114 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 dfd079f..3535aba 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 4a41f05..0bd295d 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 2359822..414e0c6 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 025ad58..b48e6b9 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 3bbaf62..e6c624d 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 64e934e..a6a74b4 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 dced9ba..f1cd31e 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 274b81b..e30414e 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 639a2ec..235dda9 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 4f1f175..6efc090 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 f3db7e9..5d8ba3a 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 4f1f175..6efc090 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 dbc42eb..c25b19d 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 724d80d..7bfadd8 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 284423c..c7a2b5d 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 de7a841..b7263c1 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 6b8c1e1..eb89c4d 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 bdd7677..c247038 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 c6c5466..51c9a31 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 eceee42..1df2ede 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 20345d3..5157628 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 02aac28..a77b5b0 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 0bf8d56..003662b 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 383ba1c..65b578b 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 89a980d..3e1eb62 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 f94380a..2a46a53 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 ce63ee8..4fe30d4 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 ed9be2e..db2e74a 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 7a66a4b..3f921b7 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 83a26ec..74d54bd 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 3dd1ab3..0f12f49 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 fc03f0f..c882190 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 (