Skip to content

Commit

Permalink
🐛 move license check to lint workflow (#865)
Browse files Browse the repository at this point in the history
* move license check to lint workflow

Signed-off-by: Ivan Milchev <[email protected]>

* fix license headers

Signed-off-by: Ivan Milchev <[email protected]>

---------

Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Sep 25, 2023
1 parent 79942d6 commit 17034bd
Show file tree
Hide file tree
Showing 84 changed files with 183 additions and 541 deletions.
5 changes: 2 additions & 3 deletions .github/terraform/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ https://docs.aws.amazon.com/eks/latest/userguide/pod-security-policy.html#psp-de

* Author:: Mondoo, Inc.

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
Copyright (c) Mondoo, Inc.
SPDX-License-Identifier: BUSL-1.1

## Disclaimer

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,3 @@ jobs:
remote-organization-name: mondoohq
branch: 'main'
allowlist: mondoo-tools,github-actions[bot],dependabot[bot]

license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Copywrite
uses: hashicorp/[email protected]

- name: Check Header Compliance
run: copywrite headers --plan
12 changes: 12 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,15 @@ jobs:
with:
version: v1.54
args: --timeout=20m0s

license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Copywrite
uses: hashicorp/[email protected]

- name: Check Header Compliance
run: copywrite headers --plan
9 changes: 2 additions & 7 deletions api/v1alpha2/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

// Package v1alpha2 contains API Schema definitions for the k8s v1alpha2 API group
// +kubebuilder:object:generate=true
Expand Down
9 changes: 2 additions & 7 deletions api/v1alpha2/mondooauditconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package v1alpha2

Expand Down
9 changes: 2 additions & 7 deletions api/v1alpha2/mondoooperatorconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package v1alpha2

Expand Down
9 changes: 2 additions & 7 deletions api/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions cmd/mondoo-operator/webhook/cmd.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package webhook

Expand Down
9 changes: 2 additions & 7 deletions controllers/admission/cert-manager.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package admission

Expand Down
9 changes: 2 additions & 7 deletions controllers/admission/conditions.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package admission

Expand Down
9 changes: 2 additions & 7 deletions controllers/admission/deployment_handler.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package admission

Expand Down
9 changes: 2 additions & 7 deletions controllers/admission/deployment_handler_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package admission

Expand Down
9 changes: 2 additions & 7 deletions controllers/admission/resources.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package admission

Expand Down
9 changes: 2 additions & 7 deletions controllers/container_image/conditions.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package container_image

Expand Down
9 changes: 2 additions & 7 deletions controllers/container_image/deployment_handler.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package container_image

Expand Down
9 changes: 2 additions & 7 deletions controllers/container_image/deployment_handler_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package container_image

Expand Down
9 changes: 2 additions & 7 deletions controllers/container_image/resources.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package container_image

Expand Down
9 changes: 2 additions & 7 deletions controllers/integration/integration_controller.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package integration

Expand Down
9 changes: 2 additions & 7 deletions controllers/integration/integration_controller_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package integration

Expand Down
9 changes: 2 additions & 7 deletions controllers/k8s_scan/conditions.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package k8s_scan

Expand Down
9 changes: 2 additions & 7 deletions controllers/k8s_scan/deployment_handler.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package k8s_scan

Expand Down
9 changes: 2 additions & 7 deletions controllers/k8s_scan/deployment_handler_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package k8s_scan

Expand Down
9 changes: 2 additions & 7 deletions controllers/k8s_scan/resources.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package k8s_scan

Expand Down
9 changes: 2 additions & 7 deletions controllers/mondooauditconfig_controller.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package controllers

Expand Down
9 changes: 2 additions & 7 deletions controllers/mondooauditconfig_controller_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package controllers

Expand Down
9 changes: 2 additions & 7 deletions controllers/mondoooperatorconfig_controller.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package controllers

Expand Down
9 changes: 2 additions & 7 deletions controllers/nodes/conditions.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package nodes

Expand Down
9 changes: 2 additions & 7 deletions controllers/nodes/deployment_handler.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package nodes

Expand Down
9 changes: 2 additions & 7 deletions controllers/nodes/deployment_handler_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package nodes

Expand Down
9 changes: 2 additions & 7 deletions controllers/nodes/resources.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
Copyright 2022 Mondoo, Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package nodes

Expand Down
Loading

0 comments on commit 17034bd

Please sign in to comment.