You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
policy devel lint --format removes the comments #2320
diff --git a/docs/examples/policies/chainloop-commit.yaml b/docs/examples/policies/chainloop-commit.yaml
index 5db355f2..1f1918b4 100644
--- a/docs/examples/policies/chainloop-commit.yaml
+++ b/docs/examples/policies/chainloop-commit.yaml
@@ -1,65 +1,50 @@
-# Copyright 2024-2025 The Chainloop 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.
-
apiVersion: workflowcontract.chainloop.dev/v1
kind: Policy
metadata:
- name: chainloop-commit
+ name: chainloop-commit
This issue prevents us from passing the linting error in the policies in this repo
chainloop policy develop lint
Found 4 issues:
1. /Users/miguelmartinez/work/chainloop/chainloop/docs/examples/policies/chainloop-commit.yaml:(embedded #1):1: File should be formatted with `opa fmt`
2. /Users/miguelmartinez/work/chainloop/chainloop/docs/examples/policies/chainloop-qa.yaml:(embedded #1):1: File should be formatted with `opa fmt`
3. /Users/miguelmartinez/work/chainloop/chainloop/docs/examples/policies/sarif-errors.yaml:(embedded #1):1: File should be formatted with `opa fmt`
4. /Users/miguelmartinez/work/chainloop/chainloop/docs/examples/policies/trivy-vulns.yaml:(embedded #1):1: File should be formatted with `opa fmt`
if I format, the comments are removed, which we don't want to.
Activity
migmartri commentedon Aug 7, 2025
This issue prevents us from passing the linting error in the policies in this repo
if I format, the comments are removed, which we don't want to.