Skip to content

compress: invalid action silently decompresses #99

Description

Bug

action is not validated. Anything other than compress takes the decompress path, so a typo (compres, uncompress, empty after override) silently inverts the task. format is validated at load; action is not.

Where

internal/pkg/pipeline/task/compress/compress.goRun uses if c.Action == defaultAction { compress } else { decompress }.

Expected

Reject unknown action at config load. Only compress and decompress should be accepted.

Found while auditing task READMEs in #96.

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