toJson changed behavior since yesterday, and can't find any documentation about it
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
All my actions stopped working because it fails to parse the action inputs as JSON.
It started somewhen between 21hrs ago and 17hrs ago adding some random backslash n characters inside of parsed workflow inputs.
Past behavior :

Current behavior :

To Reproduce
Fork this repo https://github.com/pierreminiggio/article-video-maker
Create a branch at this commit : https://github.com/pierreminiggio/article-video-maker/tree/5d5e203d6fb51c981071c5a9ccdf588e756b3f6f (Using that commit is important, you won't be able to reproduce it on the lastest version of my project, since I'm gonna use the work around described here : https://github.com/actions/toolkit/issues/953#issuecomment-986011230)
Run a new workflow on that branch :
uuid: TW9uLCAyOSBOb3YgMjAyMSAxNDoxNzowNyArMDAwMA==
durationInSeconds: 201.048
fps: 60
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure using the specified article-video-maker commit and workflow inputs, then compare the current toJson behavior with the past behavior shown in the issue. Done means identifying why parsed workflow inputs gain backslash-n characters, restoring valid JSON parsing, and covering the regression with an appropriate test or documented reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100