Skip to content

Validate literal subject-path entries consistently with other *-path inputs #489

Description

@JamieMagee

predicate-path and sbom-path fail when their supplied files do not exist. subject-path only fails when the whole input resolves to no files.

For example:

with:
  subject-path: |
    dist/existing.tar.gz
    dist/missing.tar.gz

If existing.tar.gz exists, the action succeeds and silently omits missing.tar.gz from the attestation.

Is this difference intentional? If not, could subject-path fail when any positive literal path is missing? Glob and exclusion patterns could keep their current behavior.

Activity

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

Metadata

Metadata

Assignees

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