Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 move license check to lint workflow #865

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading