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
# kics-scan disable=555ab8f9-2001-455e-a077-f2d0f41e2fb9### Some GitHub workflow#
---
name: Workflow
And like this
### Some GitHub workflow#
---
# kics-scan disable=555ab8f9-2001-455e-a077-f2d0f41e2fb9name: Workflow
Actual Behavior
The ignore does not occur when the YAML is formatted like this:
### Some GitHub workflow#
---
# kics-scan disable=555ab8f9-2001-455e-a077-f2d0f41e2fb9name: Workflow
This actually took me some time to debug because the official documentation actually says that KICS will only work when the ignore directive happens after the front-matter block, when the opposite is actually true. Per the documentation:
NOTE: For YAML when trying to ignore the whole resource this file should start with --- and
then the KICS comment command as you can see on the following example:
andrewvaughan
changed the title
bug(<scope>): <title starting with lowercase letter>
bug: documentation and/or functionality incorrect for YAML frontmatter
Oct 13, 2023
andrewvaughan
changed the title
bug: documentation and/or functionality incorrect for YAML frontmatter
bug(global): documentation and/or functionality incorrect for YAML frontmatter
Oct 13, 2023
Expected Behavior
Ignored YML directives should work like this:
And like this
Actual Behavior
The ignore does not occur when the YAML is formatted like this:
This actually took me some time to debug because the official documentation actually says that KICS will only work when the ignore directive happens after the front-matter block, when the opposite is actually true. Per the documentation:
Steps to Reproduce the Problem
Create a YAML file with an ignore after the front-matter, per the documentation, that breaks a rule.
Specifications
1.4.9
linux/amd64
)The text was updated successfully, but these errors were encountered: