Skip to content

awk-based YAML parsing is fragile for quoted or complex name values #18

Description

@kphunter

The chart name extraction awk '/^name:/{print $2; exit}' relies on whitespace-delimited field splitting and assumes the name: value is unquoted. If were to use a quoted form like name: "my-chart", the extracted value would include the quotes, breaking the .tgz filename and the cosign reference. Currently uses the unquoted form name: tech-ops-docs, so this works correctly today. Not a bug, but worth noting as a fragility if chart metadata conventions change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions