Skip to content

[Bug] Misleading error message when specifying a duplicate uuid #101

@kimdre

Description

@kimdre

When specifying the same secret uuid multiple times, a very misleading error message is returned.

- name: Get Secrets
        uses: bitwarden/sm-action@v2
        with:
          access_token: ${{ secrets.BW_ACCESS_TOKEN }}
          base_url: "https://vault.${{ vars.BW_BASE_URL }}"
          identity_url: "https://identity.${{ vars.BW_BASE_URL }}"
          api_url: "https://api.${{ vars.BW_BASE_URL }}"
          secrets: |
            12345678-8e0f-4ecb-9a10-65113e8aaf66 > VAR1
            12345678-8e0f-4ecb-9a10-65113e8aaf66 > VAR2
Error: The secrets provided could not be found. Please check the service account has access to the secret UUIDs provided.

Received error message from server: [404 Not Found] {"message":"Resource not found.","validationErrors":null,"exceptionMessage":null,"exceptionStackTrace":null,"innerExceptionMessage":null,"object":"error"}

This error should either be fixed or the error message should be changed to tell the user that passing duplicate uuids is not allowed.

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