Documentation
¶
Overview ¶
Package outputs implements the action-output file grammar shared by the runner's action handler and the actions-supervisor. Both ends must agree on how a step's outputs file is written and parsed, so the grammar lives here rather than in either binary.
Index ¶
Constants ¶
View Source
const ( // FilenameFormat is the per-step outputs filename, indexed by step index. FilenameFormat string = "%d.nuon-outputs.json" // MaxFileSize bounds how much of an action's outputs file the runner will // read, so a step can't exhaust runner memory by emitting an enormous file. MaxFileSize int64 = 1048576 )
Variables ¶
This section is empty.
Functions ¶
func ParseFile ¶
ParseFile reads an outputs file and merges every line into a single map. A missing file is treated as empty output. An image-backed action shares this workspace, so the path is attacker-controlled: O_NOFOLLOW stops a symlink redirecting the read at host state, O_NONBLOCK stops a FIFO hanging the runner on open, and the fstat rejects anything but a regular file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.