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
...
spec:
# when set to 0 (and only 0) will be set to 1 when the first PingSource is created.replicas: {{ .Values.knative.eventing.mtping.replicas }}selector:
matchLabels: &labelseventing.knative.dev/source: ping-source-controllersources.knative.dev/role: adaptertemplate:
metadata:
labels:
!!merge <<: *labelseventing.knative.dev/release: "v1.9.0"app.kubernetes.io/component: pingsource-mt-adapterapp.kubernetes.io/version: "1.9.0"app.kubernetes.io/name: knative-eventing
...
Perhaps we could use the goccy/go-yaml package, which is actively maintained and passes all the test cases from the YAML Test Suite, but I haven't looked to see if the package has the ability to get the YAML node position.
kind/bugCategorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanning
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Trivy uses
gopkg.in/yaml.v3
to decode YAML that does not support << (merge) unquoted keys.Example configuration:
Perhaps we could use the goccy/go-yaml package, which is actively maintained and passes all the test cases from the YAML Test Suite, but I haven't looked to see if the package has the ability to get the YAML node position.
Desired Behavior
The merge key will be processed
Actual Behavior
The merge key is considered just a map key
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
m1
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions