-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github Action Error: invalid JSON provided #10
Comments
Hey @caruccio Having the same issue. Were you able to workaround this? Thanks! |
Ok, I found a way to resolve this. What went into the "invalid JSON provided" message for me was the trial to change just a value via the op CLI:
I then tried to load the json, change the file and push it again. Basically the example from the CLI help output: But this went into: My current solution is to load the json, change the file and pipe it into the edit command. Here is a full step approach:
(Do not forget to add proper cleanups at the end of your workflow.) Hope it helps. :-) |
Thanks @SimonPNorra! I'm gonna try your suggestion ASAP. |
Hi.
I 'm trying to edit an item using this github action but it's failing with
Error: 2024/08/09 19:06:52 invalid JSON provided
I 'm using a RW Service Account token from exported to repos secret
OP_SERVICE_ACCOUNT_TOKEN
.Both
item list
anditem edit
works from my desktop. I've no OP desktop app installed, only the chrome extension.Only
item list
works from githuc action.This is the snippet of my workflow. All variables are properly populated
The text was updated successfully, but these errors were encountered: