From 0f0442326068371e346f60b027c690ec2b669fea Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 1 Jun 2023 18:55:29 +0200 Subject: [PATCH 1/7] chore(makefile): remove unused variables Signed-off-by: Massimiliano Giovagnoli --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 7e2b027..7f3442c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ APP := peribolos-syncer -user := maxgio92 bins := git go gofumpt golangci-lint ginkgo define declare_binpaths From 9b960ae539d5cdd91717f8cc915837039fa83b0d Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 1 Jun 2023 18:58:00 +0200 Subject: [PATCH 2/7] clean(cmd/sync/github): update tool signature Signed-off-by: Massimiliano Giovagnoli --- cmd/sync/github/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sync/github/constants.go b/cmd/sync/github/constants.go index b1489ef..110c101 100644 --- a/cmd/sync/github/constants.go +++ b/cmd/sync/github/constants.go @@ -12,7 +12,7 @@ peribolos-syncer sync github --org=acme --team=app-maintainers --gpg-public-key=./bot.pub --gpg-private-key=./bot.asc ` - syncerSignature = "Autogenerated with [peribolos-syncer](https://github.com/maxgio92/peribolos-syncer)." + syncerSignature = "Autogenerated with [peribolos-syncer](https://github.com/falcosecurity/peribolos-syncer)." ownersDoc = "https://docs.prow.k8s.io/docs/components/plugins/approve/approvers/#overview" peribolosConfigFile = "org.yaml" ) From fed7aead62b4bdb1a8f165306b1cd316e4a7dfb0 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 1 Jun 2023 18:58:22 +0200 Subject: [PATCH 3/7] clean(.goreleaser.yaml): update oci repository url Signed-off-by: Massimiliano Giovagnoli --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0d6eb10..40915de 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -52,7 +52,7 @@ signs: kos: - base_image: cgr.dev/chainguard/static - repository: ghcr.io/maxgio92/peribolos-syncer + repository: ghcr.io/falcosecurity/peribolos-syncer bare: true tags: - '{{ .Version }}' From d7cfd1c37362089d9d5e347c299e3d42470e4569 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 1 Jun 2023 20:46:38 +0200 Subject: [PATCH 4/7] clean: rename go module Signed-off-by: Massimiliano Giovagnoli --- cmd/root.go | 6 +++--- cmd/sync/github/sync_github.go | 14 +++++++------- cmd/sync/local/sync_local.go | 6 +++--- cmd/sync/sync.go | 4 ++-- cmd/version/version.go | 2 +- docs/docs.go | 2 +- go.mod | 2 +- internal/owners/owners_test.go | 2 +- main.go | 2 +- pkg/peribolos/peribolos_test.go | 3 ++- pkg/pgp/pgp_test.go | 7 ++++--- 11 files changed, 26 insertions(+), 24 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index db552b6..4dd600e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,11 +17,11 @@ limitations under the License. package cmd import ( - "github.com/maxgio92/peribolos-syncer/cmd/version" "github.com/spf13/cobra" - "github.com/maxgio92/peribolos-syncer/cmd/sync" - "github.com/maxgio92/peribolos-syncer/internal/output" + "github.com/falcosecurity/peribolos-syncer/cmd/sync" + "github.com/falcosecurity/peribolos-syncer/cmd/version" + "github.com/falcosecurity/peribolos-syncer/internal/output" ) // New returns a new root command. diff --git a/cmd/sync/github/sync_github.go b/cmd/sync/github/sync_github.go index 060db31..e31f5ea 100644 --- a/cmd/sync/github/sync_github.go +++ b/cmd/sync/github/sync_github.go @@ -32,13 +32,13 @@ import ( "k8s.io/test-infra/prow/repoowners" "sigs.k8s.io/yaml" - syncergit "github.com/maxgio92/peribolos-syncer/internal/git" - syncergithub "github.com/maxgio92/peribolos-syncer/internal/github" - "github.com/maxgio92/peribolos-syncer/internal/output" - "github.com/maxgio92/peribolos-syncer/internal/owners" - "github.com/maxgio92/peribolos-syncer/internal/sync" - orgs "github.com/maxgio92/peribolos-syncer/pkg/peribolos" - "github.com/maxgio92/peribolos-syncer/pkg/pgp" + syncergit "github.com/falcosecurity/peribolos-syncer/internal/git" + syncergithub "github.com/falcosecurity/peribolos-syncer/internal/github" + "github.com/falcosecurity/peribolos-syncer/internal/output" + "github.com/falcosecurity/peribolos-syncer/internal/owners" + "github.com/falcosecurity/peribolos-syncer/internal/sync" + orgs "github.com/falcosecurity/peribolos-syncer/pkg/peribolos" + "github.com/falcosecurity/peribolos-syncer/pkg/pgp" ) type options struct { diff --git a/cmd/sync/local/sync_local.go b/cmd/sync/local/sync_local.go index e73878e..8dc8a45 100644 --- a/cmd/sync/local/sync_local.go +++ b/cmd/sync/local/sync_local.go @@ -25,9 +25,9 @@ import ( "k8s.io/test-infra/prow/repoowners" "sigs.k8s.io/yaml" - "github.com/maxgio92/peribolos-syncer/internal/output" - "github.com/maxgio92/peribolos-syncer/internal/sync" - orgs "github.com/maxgio92/peribolos-syncer/pkg/peribolos" + "github.com/falcosecutity/peribolos-syncer/internal/output" + "github.com/falcosecutity/peribolos-syncer/internal/sync" + orgs "github.com/falcosecutity/peribolos-syncer/pkg/peribolos" ) type options struct { diff --git a/cmd/sync/sync.go b/cmd/sync/sync.go index 470b405..57123dd 100644 --- a/cmd/sync/sync.go +++ b/cmd/sync/sync.go @@ -17,10 +17,10 @@ limitations under the License. package sync import ( - "github.com/maxgio92/peribolos-syncer/cmd/sync/github" "github.com/spf13/cobra" - "github.com/maxgio92/peribolos-syncer/cmd/sync/local" + "github.com/falcosecurity/peribolos-syncer/cmd/sync/github" + "github.com/falcosecurity/peribolos-syncer/cmd/sync/local" ) // New returns a new root command. diff --git a/cmd/version/version.go b/cmd/version/version.go index 1d97ff6..5ed46bc 100644 --- a/cmd/version/version.go +++ b/cmd/version/version.go @@ -22,7 +22,7 @@ import ( "github.com/spf13/cobra" - "github.com/maxgio92/peribolos-syncer/internal/output" + "github.com/falcosecurity/peribolos-syncer/internal/output" ) var ( diff --git a/docs/docs.go b/docs/docs.go index 2cce6a1..6393022 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra/doc" - "github.com/maxgio92/peribolos-syncer/cmd" + "github.com/falcosecurity/peribolos-syncer/cmd" ) const ( diff --git a/go.mod b/go.mod index 3bbd195..583362d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/maxgio92/peribolos-syncer +module github.com/falcosecurity/peribolos-syncer go 1.20 diff --git a/internal/owners/owners_test.go b/internal/owners/owners_test.go index 10f1602..524a6a9 100644 --- a/internal/owners/owners_test.go +++ b/internal/owners/owners_test.go @@ -10,7 +10,7 @@ import ( "k8s.io/test-infra/prow/github" "k8s.io/test-infra/prow/repoowners" - . "github.com/maxgio92/peribolos-syncer/internal/owners" + . "github.com/falcosecurity/peribolos-syncer/internal/owners" ) const ( diff --git a/main.go b/main.go index 8ddc105..a3200f2 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ limitations under the License. package main -import "github.com/maxgio92/peribolos-syncer/cmd" +import "github.com/falcosecurity/peribolos-syncer/cmd" func main() { cmd.Execute() diff --git a/pkg/peribolos/peribolos_test.go b/pkg/peribolos/peribolos_test.go index 831e1e7..d8eda85 100644 --- a/pkg/peribolos/peribolos_test.go +++ b/pkg/peribolos/peribolos_test.go @@ -4,11 +4,12 @@ import ( "fmt" "github.com/go-git/go-billy/v5/memfs" - . "github.com/maxgio92/peribolos-syncer/pkg/peribolos" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" peribolos "k8s.io/test-infra/prow/config/org" "sigs.k8s.io/yaml" + + . "github.com/falcosecurity/peribolos-syncer/pkg/peribolos" ) const ( diff --git a/pkg/pgp/pgp_test.go b/pkg/pgp/pgp_test.go index 04f3fe5..b1b08c0 100644 --- a/pkg/pgp/pgp_test.go +++ b/pkg/pgp/pgp_test.go @@ -1,16 +1,17 @@ package pgp_test import ( + "io" + "strings" + "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" "github.com/ProtonMail/go-crypto/openpgp/packet" "github.com/go-git/go-billy/v5/memfs" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "io" - "strings" - "github.com/maxgio92/peribolos-syncer/pkg/pgp" + "github.com/falcosecurity/peribolos-syncer/pkg/pgp" ) var _ = Describe("Decoding a PGP private key", func() { From c27e5f2250bd439c389b970041817cb0adbe22bd Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 1 Jun 2023 20:51:31 +0200 Subject: [PATCH 5/7] clean: remove license header from files Signed-off-by: Massimiliano Giovagnoli --- cmd/root.go | 16 ---------------- cmd/sync/github/sync_github.go | 16 ---------------- cmd/sync/local/constants.go | 16 ---------------- cmd/sync/local/sync_local.go | 16 ---------------- cmd/sync/sync.go | 16 ---------------- cmd/version/version.go | 16 ---------------- cmd/version/version_test.go | 16 ---------------- internal/github/github.go | 21 +++------------------ internal/output/output.go | 16 ---------------- internal/owners/owners.go | 16 ---------------- internal/sync/sync.go | 16 ---------------- main.go | 16 ---------------- pkg/peribolos/peribolos.go | 17 +---------------- 13 files changed, 4 insertions(+), 210 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 4dd600e..61d4d2a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - package cmd import ( diff --git a/cmd/sync/github/sync_github.go b/cmd/sync/github/sync_github.go index e31f5ea..561df73 100644 --- a/cmd/sync/github/sync_github.go +++ b/cmd/sync/github/sync_github.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 github import ( diff --git a/cmd/sync/local/constants.go b/cmd/sync/local/constants.go index 613a1ca..3d634c9 100644 --- a/cmd/sync/local/constants.go +++ b/cmd/sync/local/constants.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 local const ( diff --git a/cmd/sync/local/sync_local.go b/cmd/sync/local/sync_local.go index 8dc8a45..b4d94fe 100644 --- a/cmd/sync/local/sync_local.go +++ b/cmd/sync/local/sync_local.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 local import ( diff --git a/cmd/sync/sync.go b/cmd/sync/sync.go index 57123dd..2889502 100644 --- a/cmd/sync/sync.go +++ b/cmd/sync/sync.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 sync import ( diff --git a/cmd/version/version.go b/cmd/version/version.go index 5ed46bc..0780003 100644 --- a/cmd/version/version.go +++ b/cmd/version/version.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 ( diff --git a/cmd/version/version_test.go b/cmd/version/version_test.go index a2b2d05..cb59027 100644 --- a/cmd/version/version_test.go +++ b/cmd/version/version_test.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 ( diff --git a/internal/github/github.go b/internal/github/github.go index 072352e..938e5d8 100644 --- a/internal/github/github.go +++ b/internal/github/github.go @@ -1,29 +1,14 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 github import ( "flag" "fmt" - "github.com/go-git/go-git/v5" - githttp "github.com/go-git/go-git/v5/plumbing/transport/http" "net/url" "os" + "github.com/go-git/go-git/v5" + githttp "github.com/go-git/go-git/v5/plumbing/transport/http" + "github.com/pkg/errors" "github.com/spf13/pflag" "k8s.io/test-infra/pkg/flagutil" diff --git a/internal/output/output.go b/internal/output/output.go index 2cdbffa..3022bfc 100644 --- a/internal/output/output.go +++ b/internal/output/output.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 output import ( diff --git a/internal/owners/owners.go b/internal/owners/owners.go index 80b4fee..b3c39ce 100644 --- a/internal/owners/owners.go +++ b/internal/owners/owners.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 owners import ( diff --git a/internal/sync/sync.go b/internal/sync/sync.go index 1f8ba86..8a91011 100644 --- a/internal/sync/sync.go +++ b/internal/sync/sync.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 sync // CommonOptions represent the sync command common options. diff --git a/main.go b/main.go index a3200f2..1b54233 100644 --- a/main.go +++ b/main.go @@ -1,19 +1,3 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 main import "github.com/falcosecurity/peribolos-syncer/cmd" diff --git a/pkg/peribolos/peribolos.go b/pkg/peribolos/peribolos.go index 92c571f..fdc742f 100644 --- a/pkg/peribolos/peribolos.go +++ b/pkg/peribolos/peribolos.go @@ -1,23 +1,8 @@ -/* -Copyright © 2023 maxgio92 me@maxgio.me - -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 peribolos import ( "fmt" + "github.com/spf13/pflag" ) From 3840b5ee9879d3976ff84dba1a1ed127eb533dc2 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Fri, 11 Aug 2023 19:20:28 +0200 Subject: [PATCH 6/7] clean(.golangci.yml): update self module packages section Signed-off-by: Massimiliano Giovagnoli --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index e2907de..4061e2e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,7 +10,7 @@ linters-settings: sections: - standard # Captures all standard packages if they do not match another section. - default # Contains all imports that could not be matched to another section type. - - prefix(github.com/maxgio92/peribolos-owners-syncer) # Groups all imports with the specified Prefix. + - prefix(github.com/falcosecurity/peribolos-owners-syncer) # Groups all imports with the specified Prefix. tagliatelle: case: rules: From b56016d588e257082123bbe7094c35bf8192b85b Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Fri, 11 Aug 2023 19:31:55 +0200 Subject: [PATCH 7/7] chore: update license header Signed-off-by: Massimiliano Giovagnoli --- cmd/contants.go | 14 ++++++++++++++ cmd/root.go | 14 ++++++++++++++ cmd/sync/contants.go | 14 ++++++++++++++ cmd/sync/github/constants.go | 14 ++++++++++++++ cmd/sync/github/sync_github.go | 14 ++++++++++++++ cmd/sync/local/constants.go | 14 ++++++++++++++ cmd/sync/local/sync_local.go | 14 ++++++++++++++ cmd/sync/sync.go | 14 ++++++++++++++ cmd/version/version.go | 14 ++++++++++++++ cmd/version/version_test.go | 14 ++++++++++++++ docs/docs.go | 14 ++++++++++++++ internal/git/git.go | 14 ++++++++++++++ internal/github/github.go | 14 ++++++++++++++ internal/output/output.go | 14 ++++++++++++++ internal/owners/owners.go | 14 ++++++++++++++ internal/owners/owners_suite_test.go | 14 ++++++++++++++ internal/owners/owners_test.go | 14 ++++++++++++++ internal/sync/sync.go | 14 ++++++++++++++ main.go | 14 ++++++++++++++ pkg/peribolos/config.go | 14 ++++++++++++++ pkg/peribolos/peribolos.go | 14 ++++++++++++++ pkg/peribolos/peribolos_suite_test.go | 14 ++++++++++++++ pkg/peribolos/peribolos_test.go | 14 ++++++++++++++ pkg/pgp/pgp.go | 14 ++++++++++++++ pkg/pgp/pgp_suite_test.go | 14 ++++++++++++++ pkg/pgp/pgp_test.go | 14 ++++++++++++++ 26 files changed, 364 insertions(+) diff --git a/cmd/contants.go b/cmd/contants.go index 11df9c6..f134c9c 100644 --- a/cmd/contants.go +++ b/cmd/contants.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package cmd const ( diff --git a/cmd/root.go b/cmd/root.go index 61d4d2a..f4ff3ad 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package cmd import ( diff --git a/cmd/sync/contants.go b/cmd/sync/contants.go index 8679e94..103b139 100644 --- a/cmd/sync/contants.go +++ b/cmd/sync/contants.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 sync const ( diff --git a/cmd/sync/github/constants.go b/cmd/sync/github/constants.go index 110c101..3e43062 100644 --- a/cmd/sync/github/constants.go +++ b/cmd/sync/github/constants.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 github const ( diff --git a/cmd/sync/github/sync_github.go b/cmd/sync/github/sync_github.go index 561df73..53f0986 100644 --- a/cmd/sync/github/sync_github.go +++ b/cmd/sync/github/sync_github.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 github import ( diff --git a/cmd/sync/local/constants.go b/cmd/sync/local/constants.go index 3d634c9..3a84f5e 100644 --- a/cmd/sync/local/constants.go +++ b/cmd/sync/local/constants.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 local const ( diff --git a/cmd/sync/local/sync_local.go b/cmd/sync/local/sync_local.go index b4d94fe..0311ccc 100644 --- a/cmd/sync/local/sync_local.go +++ b/cmd/sync/local/sync_local.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 local import ( diff --git a/cmd/sync/sync.go b/cmd/sync/sync.go index 2889502..1c751ca 100644 --- a/cmd/sync/sync.go +++ b/cmd/sync/sync.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 sync import ( diff --git a/cmd/version/version.go b/cmd/version/version.go index 0780003..0f98598 100644 --- a/cmd/version/version.go +++ b/cmd/version/version.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 ( diff --git a/cmd/version/version_test.go b/cmd/version/version_test.go index cb59027..5d5fa3c 100644 --- a/cmd/version/version_test.go +++ b/cmd/version/version_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 ( diff --git a/docs/docs.go b/docs/docs.go index 6393022..d8a4abc 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 main import ( diff --git a/internal/git/git.go b/internal/git/git.go index e4d4647..46e57c5 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 git import ( diff --git a/internal/github/github.go b/internal/github/github.go index 938e5d8..3796572 100644 --- a/internal/github/github.go +++ b/internal/github/github.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 github import ( diff --git a/internal/output/output.go b/internal/output/output.go index 3022bfc..65faa97 100644 --- a/internal/output/output.go +++ b/internal/output/output.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 output import ( diff --git a/internal/owners/owners.go b/internal/owners/owners.go index b3c39ce..931a1df 100644 --- a/internal/owners/owners.go +++ b/internal/owners/owners.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 owners import ( diff --git a/internal/owners/owners_suite_test.go b/internal/owners/owners_suite_test.go index 51b92aa..b4aca7d 100644 --- a/internal/owners/owners_suite_test.go +++ b/internal/owners/owners_suite_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 owners_test import ( diff --git a/internal/owners/owners_test.go b/internal/owners/owners_test.go index 524a6a9..d7e114c 100644 --- a/internal/owners/owners_test.go +++ b/internal/owners/owners_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 owners_test import ( diff --git a/internal/sync/sync.go b/internal/sync/sync.go index 8a91011..d6f1c05 100644 --- a/internal/sync/sync.go +++ b/internal/sync/sync.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 sync // CommonOptions represent the sync command common options. diff --git a/main.go b/main.go index 1b54233..d7466e6 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 main import "github.com/falcosecurity/peribolos-syncer/cmd" diff --git a/pkg/peribolos/config.go b/pkg/peribolos/config.go index 05f23fd..750eaf9 100644 --- a/pkg/peribolos/config.go +++ b/pkg/peribolos/config.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 peribolos import ( diff --git a/pkg/peribolos/peribolos.go b/pkg/peribolos/peribolos.go index fdc742f..8adbf0e 100644 --- a/pkg/peribolos/peribolos.go +++ b/pkg/peribolos/peribolos.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 peribolos import ( diff --git a/pkg/peribolos/peribolos_suite_test.go b/pkg/peribolos/peribolos_suite_test.go index 807d9ac..0b70141 100644 --- a/pkg/peribolos/peribolos_suite_test.go +++ b/pkg/peribolos/peribolos_suite_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 peribolos_test import ( diff --git a/pkg/peribolos/peribolos_test.go b/pkg/peribolos/peribolos_test.go index d8eda85..de72091 100644 --- a/pkg/peribolos/peribolos_test.go +++ b/pkg/peribolos/peribolos_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 peribolos_test import ( diff --git a/pkg/pgp/pgp.go b/pkg/pgp/pgp.go index c23d1e7..d0fc2b7 100644 --- a/pkg/pgp/pgp.go +++ b/pkg/pgp/pgp.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 pgp import ( diff --git a/pkg/pgp/pgp_suite_test.go b/pkg/pgp/pgp_suite_test.go index 2379836..5d54a33 100644 --- a/pkg/pgp/pgp_suite_test.go +++ b/pkg/pgp/pgp_suite_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 pgp_test import ( diff --git a/pkg/pgp/pgp_test.go b/pkg/pgp/pgp_test.go index b1b08c0..1186482 100644 --- a/pkg/pgp/pgp_test.go +++ b/pkg/pgp/pgp_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 The Falco 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 pgp_test import (