Skip to content

archive: unrecognized format panics at runtime #97

Description

Bug

archive validates action in UnmarshalYAML but does not validate format. An unknown value (e.g. format: rar) loads successfully, then supportedFormats[c.Format] returns a nil constructor and the call panics.

Where

internal/pkg/pipeline/task/archive/archive.goUnmarshalYAML checks action only; Run indexes supportedFormats with no existence check.

Expected

Reject unknown format at config load, the same way action is rejected.

Found while auditing task READMEs in #96.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions