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

query<Kubernetes>: kics-scan ignore-block not working for YAML files #7054

Open
apurvakg opened this issue May 15, 2024 · 1 comment
Open
Labels
community Community contribution kubernetes Kubernetes query query New query feature

Comments

@apurvakg
Copy link

apurvakg commented May 15, 2024

Platform

Kubernetes YAML files

Description

I have a Kubernetes deployment file(YAML), where the YAMl is a bit comples, I am getting error for one line in YAML, and I want to ignore the line. I have tried both #kics-scan ignore-line and #kics-scan ignore-block and its not working. I am not sure its because of indendation or something else. Can u help me with this. Pasting the code snipped for reference.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: "some-name"
spec:
  replicas: 1
  template: 
  metadata: 
    labels: "some label"
  spec:
    volumes:
        {{- toYaml .Values.volumes | nindent 8 }}
        - name: {{ include "name" . }}-config
          configMap:
            # kics-scan ignore-line
            name: {{ include "name" . }}-config  #line causing the issue
@apurvakg apurvakg added community Community contribution query New query feature labels May 15, 2024
@github-actions github-actions bot added the kubernetes Kubernetes query label May 15, 2024
@apurvakg apurvakg changed the title query(<YAML>): kics-scan ignore-block not working kics-scan ignore-block not working for YAML files May 15, 2024
@apurvakg apurvakg changed the title kics-scan ignore-block not working for YAML files query<Kubernetes>: kics-scan ignore-block not working for YAML files May 15, 2024
@kicsbot
Copy link
Contributor

kicsbot commented May 15, 2024

Please, follow the guideline for an issue title:

For bug:

bug(<scope>): <title starting with lowercase letter>

For query:

query(<platform>): <title starting with lowercase letter>

For feature request:

feat(<scope>): <title starting with lowercase letter>

Thank you!
KICS Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution kubernetes Kubernetes query query New query feature
Projects
None yet
Development

No branches or pull requests

2 participants