Skip to content

TypeError: Error uploading artifact to Google Artifact Registry #666

Open
@farzanhaq

Description

@farzanhaq

I am encountering the following error when trying to push an attestation using actions/attest-build-provenance to Google Artifact Registry:
Error: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined.

I am providing the subject name, subject digest and have push to registry set to enabled.

My first thought is that the bundle here is evaluating to nil:
https://github.com/actions/attest/blob/main/src/attest.ts#L40

Any tips or suggestions on how to overcome this would be much appreciated!

Metadata

Metadata

Assignees

No one assigned

    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