Skip to content

Don't fail when no secrets are present #119

Description

@cloudshiftchris

Currently, when loading secrets, if no secrets are found an exception is thrown:

if (secretsList.length === 0){
      throw new Error(`No matching secrets were returned for prefix "${prefix}".`);
}

There are valid use cases where secrets may not (yet/ever) be present, such as using this action in a reusable composite GitHub Action, where any given repository may access AWS accounts that may or may not have secrets in Secrets Manager (if they do, they will be exposed).

Proposing adding a flag such as fail-on-empty-secrets to facilitate this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions