Repository navigation
Close Actions/AW security lint gaps and add scoped suppressions - #79624
Conversation
Track executable preload operands and untrusted output flows, expand executable action inputs, and add environment-file and image pinning checks with regression coverage. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
This comment has been minimized.
This comment has been minimized.
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
🏗️ Design Decision Gate: ADR RequiredThis PR adds ~1,374 lines in business-logic directories ( I committed a draft ADR to the PR branch: Decision captured: extend the existing symbolic shell/taint model with new rules and add field-scoped Next step: review the draft, resolve the Note: the two new
|
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found three actionable correctness/security gaps in the changed linting paths:
- Matrix image templates are validated against raw axis values instead of substituted image references.
- Suppression parsing can abort the entire lint run when
actions.Emitcannot render a typedruninterpolation. - Bare Node preload/import specifiers can execute artifact-provided modules without being modeled.
Inline comments explain impact and suggested fixes.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~9 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical defects can hide security findings, miss injection and secret leaks, and mutate workflows in ways that remove interpolation safeguards.
14 open issues
Continue Node option scanning after eval and print payloads · New Include inherited environment taint in Node coverage checks · New Track file-descriptor routing in shell taint analysis · New Match alias suppressions to exact descendant paths · New Recognize only suppression directives in gh-aw comments · New Match executable input names case-insensitively · New Clone resolved step slices before rewriting them · New Preserve partial taint findings when expression analysis fails · New Track literal runner-file writes in secret-leak analysis · New Narrow suppression prechecks to comment markers · New Determine suppression ownership per diagnostic · New Preserve output declarations when lowering typed producers · New Ignore empty matrix alternatives when checking service images · New Preserve runner-target identity across taint analysis · New
What changed in this PR
Extends gh-aw’s offline Actions/AW security linting with broader data-flow checks, image pin validation, and field-scoped suppressions that leave independent compiler protections active.
Changes:
- Expand artifact execution and template-injection detection; add environment-file injection and unpinned-image rules.
- Integrate scoped suppression comments and flow-coverage warning handling into linting and compilation.
- Add regression tests, rule documentation, and public-workflow discovery and retrieval skills.
| File | Description |
|---|---|
pkg/workflow/taint/workflow.go |
Analyze executable action inputs and normalize artifact path separators. |
pkg/workflow/taint/text.go |
Detect tainted executable interpolation. |
pkg/workflow/taint/taint.go |
Define new sink kinds and executable-input hooks. |
pkg/workflow/taint/shell.go |
Check script interpolation and initialize runner-file symbols. |
pkg/workflow/taint/shell_files.go |
Track environment-file writes and literal filenames. |
pkg/workflow/taint/shell_commands.go |
Recognize additional runner-file targets. |
pkg/workflow/taint/secrets.go |
Exclude new sink kinds from secret-disclosure checks. |
pkg/workflow/lint/unpinned_images.go |
Add digest-pin checks, including matrix alternatives. |
pkg/workflow/lint/unpinned_images_test.go |
Test image pins, disabled services, and matrices. |
pkg/workflow/lint/template_injection.go |
Expand executable inputs and integrate output-flow analysis. |
pkg/workflow/lint/template_injection_test.go |
Test step and job output propagation. |
pkg/workflow/lint/template_injection_flow.go |
Add shared output-transport analysis and coverage warnings. |
pkg/workflow/lint/suppressions.go |
Parse and match field-scoped suppression comments. |
pkg/workflow/lint/suppressions_test.go |
Test directive validation, scopes, aliases, and source separation. |
pkg/workflow/lint/rule_contract_test.go |
Add contracts for the new rules. |
pkg/workflow/lint/lint.go |
Register new rules and apply suppressions. |
pkg/workflow/lint/lint_test.go |
Update registry and coverage-warning expectations. |
pkg/workflow/lint/image_policy.go |
Share image traversal and skip disabled services. |
pkg/workflow/lint/github_script_injection_test.go |
Test reviewed executable action inputs. |
pkg/workflow/lint/executable_inputs.go |
Define reviewed action/input pairs. |
pkg/workflow/lint/environment_file_injection.go |
Add attacker-controlled runner-file write detection. |
pkg/workflow/lint/environment_file_injection_test.go |
Test redirects, aliases, literal files, and filtered values. |
pkg/workflow/lint/authored_execution.go |
Include output-flow checks for authored AW execution. |
pkg/workflow/lint/artifact_execution.go |
Detect Node preloads, imports, and loaders. |
pkg/workflow/lint/artifact_execution_test.go |
Test Node execution and metadata boundaries. |
pkg/workflow/compiler_lint.go |
Share lint inputs and omit selected coverage warnings. |
pkg/workflow/compiler_lint_suppressions_test.go |
Test compiler suppressions and independent strict validation. |
pkg/workflow/compiler_lint_security_gaps_test.go |
Test compiler enforcement of new data-flow checks. |
pkg/workflow/actions/source.go |
Expose original parsed YAML for suppression detection. |
pkg/cli/lint_suppressions_test.go |
Test CLI suppression behavior and JSON diagnostics. |
docs/src/content/docs/reference/workflow-linters.md |
Document rules, suppressions, and analysis limits. |
.github/skills/top-public-aw-repositories/SKILL.md |
Add verified public-adopter discovery and ranking guidance. |
.github/skills/retrieve-public-aw-workflows/SKILL.md |
Add immutable public-workflow retrieval guidance. |
Review effort: Max (adaptive)
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "f1db66876147f4f1a0619065dd6be6d8dde1a7ac",
"kind": "requested",
"schema_version": "1",
"state": "e014cb2e89ea534f1a922c583f5f6d1bef7229cd3452d634254e16ffe88e4bdb",
"work": [
"048f4fcb999aaa6631ebc62b5dab324f1bd93871e29e4c3f8a04d5b60862f578",
"1a0ec6a4ddbb65daa22bd7914244c2de634b22d356fcdda73eaff4e1fcb4a070",
"2c35cd0a66687690c6e92f35cd9f118b2ad450cdcea2e2db68637e160c4e84af",
"476e78d83b04175df6e3f8557f9214db319f52d61345a719edd513b272546629",
"6e5b26104069cc36d1e26235fe677fd3efe014563089ec83773e85c43e75c552",
"71427c48481b19c9c336aefc65b7b31bef31a3c6d7f1ea81fbb64d86f58fa37c",
"743c0a9850f084850a35cf75ac8160b46e85dde5b16a83610ac2868232d04a6d",
"75434b2be445e9218a02082a2e7feda2e7b35d0699e0a1ed39e82c5dd3dcc2a1",
"adec8b814fb75c37a8844fb8555337c24b92676b2eafdcf3a5f817af525a9c5a",
"bacfa157c44afda4ce86d95bc2865fa323f7484c5d2415d0d7ec0c4e29bcd46b",
"bd1bf1c77670b6a9de5fef9ba1d80115078d09ca490066a8ce4d9562cc353bf5",
"cb30ff22713832a6a841f69cb701d78d8caaac10982d548cdfcee0fcc9645fea",
"d9542149ce18463b6efa0cb4521a7d261f0c46e8ae296bf0739d127b4a50ca69",
"e26f8f5b0b81e61d8c5db8e4b73fa631f81d22137e3053e369cb2422c46fa874",
"f23ff4e22b3ac8b7d353fbe7120663b64203fd0eba0bf1575f17c1f05330dcf6",
"f32c7ccf6d33671980a282cbc654d8266e8e53a9082eaaa0b18ec10faa208121",
"fe002ec1e7169e7d2619ad6080f2e81fd9a6f8d4ed199ffab91387cc75bc0ed3"
],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
In response to comment 7055691973: Acknowledged as a completion report, not a specification approval. No change is requested by this status comment, and the historical report is preserved. |
|
In response to comment 7055691990: Acknowledged as the run's reported_no_action outcome, not a substitute for test validation. No additional test change is requested by this status comment. |
|
In response to comment 7055692065: This is an informational reviewer-start reaction and contains no actionable finding. It is preserved without triggering another review. |
|
In response to comment 7055692477: Acknowledged as the run's reported_no_action outcome, not a blanket correctness or validation claim. This status contains no requested change. |
|
In response to comment 7055692830: The generated ADR has been reviewed and updated to Proposed, with deciders and maintainer approval explicitly pending. The existing run and commit report is preserved as historical evidence. |
|
In response to comment 7055694215: Acknowledged as a run completion status; substantive code findings are evaluated in their separate review threads. This report does not replace validation and needs no documentation change. |
|
In response to comment 7055765110: Partially accepted: the ADR is now Proposed, with factual placeholders resolved, bounded-analysis tradeoffs clarified, and deciders explicitly pending maintainer approval. The two public AW discovery skills are retained as requested follow-up guidance; splitting them is discretionary and not required by this architectural decision. |
|
In response to comment 7055784369: The zero-finding specification result is retained as historical evidence for its recorded head, not current verification. The managed ledger is unchanged. |
|
In response to comment 7055824957: The recorded findings are evaluated in their separate review threads. This managed memory is preserved as historical context, not rewritten as a new result. |
|
In response to comment 7055835052: The three-finding result is retained as historical evidence for its recorded head; the findings are evaluated in their separate review threads. The managed ledger is unchanged. |


Summary
Close five verified gaps in Actions/AW security linting while reducing false positives and giving operators a narrow, documented way to acknowledge incorrect diagnostics.
environment-file-injectionandunpinned-imagesrules using the existing symbolic shell model and shared image traversal.# gh-aw: ignore[rule-id, other-rule] -- reasoncomments. Require exact registered IDs and a reason; reject malformed directives. Preserve sibling diagnostics, analysis errors, and independent compiler/runtime protections.Analysis boundaries
These remain bounded, offline static checks. Unsupported shells and unresolved flows produce coverage warnings; conservative propagation and remaining limitations are documented. Compilation omits flow-coverage warnings from its warning count but still rejects confirmed errors. AW comments are not copied into generated Actions execution graphs, so compiled execution diagnostics require directives in the Actions YAML.
Validation
go test ./pkg/workflow/lint ./pkg/workflow/actions ./pkg/workflow/aw ./pkg/workflow/taint -count=1.golangci-lint runover affected rule, AST, compiler, and CLI packages. Custom analyzers reported no diagnostics in changed files.make agent-report-progress-no-test,make build,make check-stale-schema-binary, andmake check-workflow-drift: all 369 workflows compiled and lock files remained in sync.test-unitportion of the earlier final gate passed. Missing tooling and changed-file lint findings from that gate were subsequently resolved and the remaining validation components passed separately.