sm-action
sm-action copied to clipboard
[Bug] Misleading error message when specifying a duplicate uuid
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.