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
I have an OpenAPI yaml file with endpoints and I want the KICS scan to ignore some of those endpoints. I expect that if I put # kics-scan ignore-block above an endpoint, the KICS scan will ignore it. This works for most endpoints.
paths:
'/some/endpoint': # this endpoint gets included in the scanget:
property: valueotherProperty: otherValue# kics-scan ignore-block'/different/endpoint': # this endpoint gets ignoredget:
property: valueotherProperty: otherValue'/third/endpoint': # this endpoint gets included in the scanget:
property: valueotherProperty: otherValue
I expect this to work for all endpoints in the file.
Actual Behavior
However, if I try to use it to ignore the first endpoint in the file, the ignore does not apply to just that endpoint but to the entire paths block, as if I had put it above that.
paths:
# kics-scan ignore-block'/some/endpoint': # this endpoint gets ignoredget:
property: valueotherProperty: otherValue'/different/endpoint': # ...but this endpoint also gets ignoredget:
property: valueotherProperty: otherValue'/third/endpoint': # and this one tooget:
property: valueotherProperty: otherValuecomponents: # only here does the scan start to apply againschemas:
Item:
property: value
Steps to Reproduce the Problem
Put an ignore-block comment above the first endpoint in a paths block.
Specifications
GitLab kics analyzer v4.1.11
The text was updated successfully, but these errors were encountered:
Expected Behavior
I have an OpenAPI yaml file with endpoints and I want the KICS scan to ignore some of those endpoints. I expect that if I put
# kics-scan ignore-block
above an endpoint, the KICS scan will ignore it. This works for most endpoints.I expect this to work for all endpoints in the file.
Actual Behavior
However, if I try to use it to ignore the first endpoint in the file, the ignore does not apply to just that endpoint but to the entire
paths
block, as if I had put it above that.Steps to Reproduce the Problem
Put an ignore-block comment above the first endpoint in a
paths
block.Specifications
GitLab kics analyzer v4.1.11
The text was updated successfully, but these errors were encountered: