Skip to content

Error while using file as artifact with rekor-cli upload. #2138

@rajeev-0

Description

@rajeev-0

Description
I want to use rekor-cli version 1.3.6 for uploading artifact and signature using below command.
$ rekor-cli upload --artifact payload.json --signature payload.json.sig --public-key pubkey.pem --pki-format x509
But I am getting invalid argument error.
invalid argument "payload.json" for "--artifact" flag: URL must be for http or https scheme.

In help section it states it could be a file.
--artifact fileOrURL path or URL to artifact file

Version
rekor-cli: Rekor CLI

GitVersion: v1.3.6
GitCommit: a678856
GitTreeState: clean
BuildDate: 2024-04-02T04:16:36Z
GoVersion: go1.21.8
Compiler: gc
Platform: linux/amd64

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