Documentation
¶
Overview ¶
Package gradershell loads repository Bash graders and checks a finite set of direct file-write patterns. It is not a sandbox: only trusted repository scripts should run until execution is isolated.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads a regular UTF-8 Bash source file of at most 64 KiB, without executing it. Both the declaring workflow and resolved source must remain inside the repository, and the source may not be a symlink.
func ValidRunPath ¶
ValidRunPath accepts literal .sh paths, without traversal or shell expressions. A leading ./ selects the declaring workflow's directory; other paths start at the repository root.
Types ¶
type Finding ¶
Finding identifies a direct write or unchecked shell execution. Messages are static and never contain source values.
func Check ¶
Check parses Bash without executing it. All branches, function bodies and substitutions are inspected, including statically known shell -c strings. The analysis is deliberately finite: it does not model arbitrary programs, interpreter languages, aliases, or runtime-generated command contents.