Skip to content

Annotations with equal signs in value are rejected #2866

@migmartri

Description

@migmartri

When adding an annotation whose value contains = characters (e.g. a URL with query parameters), the CLI rejects it with:

ERR invalid annotation "url=https://sonarcloud.io/dashboard?id=....", the format must be key=value

Example:

chainloop att add --name sonar-url --value ${SONAR_URL} --annotation "url=${SONAR_URL}" --attestation-id $(ATTESTATION_ID)
# where SONAR_URL=https://sonarcloud.io/dashboard?id=test.mig

The annotation parser should only split on the first = sign, treating everything after it as the value.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions