You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pinact: linter is broken with pinact v5 — runner passes single-dash long flags #1177
linters/pinact/pinact_run.py invokes pinact with single-dash long flags. pinact v5 requires two dashes, so every invocation fails before the linter checks anything.
Because the finding is reported as a config-error at 1:1 with is_security: true, it looks like a security finding rather than a broken linter.
unknown flag: -format. Long flags need two dashes since pinact v5: --format pinact/config-error
linters/pinact/plugin.yaml still declares known_good_version: 4.0.0 (lines 22 and 73), so v5 was never a supported configuration — but trunk upgrade proposes it anyway, since it follows the tool's latest release rather than the plugin's known-good version. That's how most people will hit this.
Confirmed still present on main as of 2026-09-24.
Reproduction
Seed a genuinely unpinned action in a workflow:
- uses: actions/checkout@v7
Then, clearing ~/.cache/trunk/tools/pinact and running trunk cache clean between each:
lint.enabled entry
Result
pinact@4.1.1
pinact/unpinned-action — correct, auto-fixable
pinact@5.0.0
pinact/config-error only. The real finding is not reported
pinact (no version)
Clean. No findings at all
Why this can go unnoticed
pinact's files: is [github-workflow, github-actions], and hold-the-line passes only changed files. A trunk upgrade PR bumping pinact touches .trunk/trunk.yaml and nothing else — so pinact never runs on the PR that breaks it, and trunk upgrade's own trunk check validation has the same blind spot.
In our case the bump landed green and the linter sat dead for 12 days across 28 commits, until a PR finally touched a workflow file.
Second, possibly separate issue
The third row above is the one I'd flag hardest. With no version specified, Trunk resolves pinact to SYSTEM-<hash> in ~/.cache/trunk/tools/pinact/ even though there is no pinact on PATH, and the linter reports clean on a file that pinned versions correctly flag.
A silently passing security linter is worse than a failing one. Happy to split this into its own issue if it's unrelated to the flag problem.
Suggested fix
Two dashes on all four flags, and bump known_good_version to the v5 line once verified. If the runner needs to support both, gating on the detected version would work, though dropping v4 seems reasonable given v5 is current.
This issue was researched and written by Claude Opus 5 under the direction of @dignoe. The reproduction table was executed rather than inferred; the SYSTEM resolution mechanism in the second section is inference from the cache directory contents and is flagged as such.
Reacted by Chris Harrison, Jeremiah K and Gábor Barna
Activity