mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2739] Writing a large dictionary to GITHUB_OUTPUT doesn't set an output value #1239
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @barneysowood on GitHub (Apr 23, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2739
Bug report info
Command used with act
Describe issue
I have an issue where a large dictionary is written to GITHUB_OUTPUT. Below a certain size this works fine, above a certain size, the expected variable doesn't get set (with ::set-output:: ).
The original issue is when trying to run CI for https://github.com/saltstack/salt, but I have isolated the issue in a test repository. I originally raised this with entirely generated data in #2738, but closed that as I thought I was making some incorrect assumptions. I now think that was correct, but I've updated the test cases using the actual data that's being written to GITHUB_OUTPUT.
As per the previous issue, with a smaller dictionary (example here) the output var is set
but with the larger dictionary (example here the output var is not set and no error is given
I'd expect the output var to be set for either case and it does work in Github Actions
Link to GitHub repository
https://github.com/barneysowood/act-test-repo
Workflow content
Relevant log output
Additional information
No response
@ChristopherHX commented on GitHub (Apr 26, 2025):
The weirdness of not writing the whole code yourself.
https://pkg.go.dev/bufio#pkg-constants
So is
MaxScanTokenSize = 64 * 1024the cause of the problem. Your broken salt is above 64KB and this api seems to abort.While I just expected this to read line by line