Skip to content

Close Actions/AW security lint gaps and add scoped suppressions - #79624

Merged
pelikhan merged 6 commits into
mainfrom
pelikhan/studious-guacamole
Nov 21, 2026
Merged

pelikhan merged 6 commits into
mainfrom
pelikhan/studious-guacamole

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

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.

  • Detect cross-run artifact execution through Node preloads/imports/loaders, executable inputs in reviewed third-party actions, and attacker-controlled interpolation transported through shell step and job outputs.
  • Add environment-file-injection and unpinned-images rules using the existing symbolic shell model and shared image traversal.
  • Correct false positives involving Node metadata commands and module resolution, literal runner-variable filenames, disabled services, and fully excluded matrix image alternatives.
  • Add field-scoped # gh-aw: ignore[rule-id, other-rule] -- reason comments. 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

  • Passed go test ./pkg/workflow/lint ./pkg/workflow/actions ./pkg/workflow/aw ./pkg/workflow/taint -count=1.
  • Passed focused compiler lint and CLI regression tests, including malformed directives, sibling scopes, aliases, graph edits, CRLF input, companion-document ownership, and strict-mode enforcement.
  • Passed golangci-lint run over affected rule, AST, compiler, and CLI packages. Custom analyzers reported no diagnostics in changed files.
  • Passed make agent-report-progress-no-test, make build, make check-stale-schema-binary, and make check-workflow-drift: all 369 workflows compiled and lock files remained in sync.
  • The impacted test-unit portion 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.

pelikhan and others added 4 commits November 20, 2026 21:55
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]>
@pelikhan
pelikhan marked this pull request as ready for review November 21, 2026 02:09
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 02:09
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

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.

Generated by PR Specification Reviewer for #79624 · copilot · gpt56 · ~6 AIC · ⌖ ~2 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #79624 · codex · routed: gpt61 medium · ~10 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~9 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Design Decision Gate: ADR Required

This PR adds ~1,374 lines in business-logic directories (pkg/) without a linked Architecture Decision Record.

I committed a draft ADR to the PR branch: docs/adr/79624-field-scoped-lint-suppressions-and-bounded-flow-analysis.md.

Decision captured: extend the existing symbolic shell/taint model with new rules and add field-scoped # gh-aw: ignore[rule-id] -- reason suppressions, with bounded static analysis and coverage warnings.

Next step: review the draft, resolve the [TODO: verify] items (deciders, alternatives, consequences), and change its status from Draft to Proposed/Accepted before merge.

Note: the two new .github/skills/*-public-aw-* skills are unrelated to this decision; consider a separate PR.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: sonnet55 high · ~19 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-9020b27b-7bec-4be5-b494-389bfc3ed0be","parents":[],"payload":{"id":"ldg-9ec5b3ff-45c5-4abe-9ef8-e4c399ae1ba8","operation":"append","value":{"finding_count":0,"head_sha":"8b25f4dfc7dc39c551c03cba2befba7602c73691","outcome":"aligned"}},"sha":"sha256:6cee5cd32b0a3b70c428d83822fed1e4203d866c33161f1652760fd86b9bd595","timestamp":"2026-11-21T02:17:16.326Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-21T02:12:33Z
review_event: REQUEST_CHANGES
top_themes: matrix image substitution; suppression parsing failure path; unmodeled Node preload/import execution
files_reviewed: pkg/workflow/lint/unpinned_images.go, pkg/workflow/lint/suppressions.go, pkg/workflow/lint/artifact_execution.go
comment_count: 3
History

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~9 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Emit cannot render a typed run interpolation.
  • 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 thread pkg/workflow/lint/suppressions.go Resolved
Comment thread pkg/workflow/lint/artifact_execution.go Resolved
Comment thread pkg/workflow/lint/unpinned_images.go Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-49f74dcb-a249-4d07-a7f5-1e4272e0e5d2","parents":[],"payload":{"id":"ldg-bb3c3cca-01d8-4a57-9ed4-cb03612bf457","operation":"append","value":{"finding_count":3,"head_sha":"8b25f4dfc7dc39c551c03cba2befba7602c73691","outcome":"findings"}},"sha":"sha256:7abfb1d22215be5fc4ea26d8e4f6cabae24926c01632f0916547a0a63dd9d521","timestamp":"2026-11-21T02:21:10.687Z","type":"ledger_append","version":1}
History

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
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)

Comment thread pkg/workflow/lint/artifact_execution.go Resolved
Comment thread pkg/workflow/lint/suppressions.go Resolved
Comment thread pkg/workflow/lint/suppressions.go Resolved
Comment thread pkg/workflow/lint/suppressions.go Resolved
Comment thread pkg/workflow/lint/suppressions.go Resolved
Comment thread pkg/workflow/lint/unpinned_images.go Resolved
Comment thread pkg/workflow/taint/shell.go Resolved
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/workflow/lint/suppressions.go:60): address unresolved feedback - Review comment
  3. Review (pkg/workflow/lint/artifact_execution.go:297): address unresolved feedback - Review comment
  4. Review (pkg/workflow/lint/unpinned_images.go:40): address unresolved feedback - Review comment
  5. Review (pkg/workflow/lint/artifact_execution.go:292): address unresolved feedback - Review comment
  6. Review (pkg/workflow/lint/environment_file_injection.go:21): address unresolved feedback - Review comment
  7. Review (pkg/workflow/lint/environment_file_injection.go:21): address unresolved feedback - Review comment
  8. Review (pkg/workflow/lint/suppressions.go:85): address unresolved feedback - Review comment
  9. Review (pkg/workflow/lint/suppressions.go:117): address unresolved feedback - Review comment
  10. Review (pkg/workflow/lint/template_injection.go:128): address unresolved feedback - Review comment
  11. Review (pkg/workflow/lint/template_injection_flow.go:64): address unresolved feedback - Review comment
  12. Review (pkg/workflow/lint/template_injection_flow.go:118): address unresolved feedback - Review comment
  13. Review (pkg/workflow/taint/shell_files.go:147): address unresolved feedback - Review comment
  14. Review (pkg/workflow/lint/suppressions.go:58): address unresolved feedback - Review comment
  15. Review (pkg/workflow/lint/suppressions.go:78): address unresolved feedback - Review comment
  16. Review (pkg/workflow/lint/template_injection_flow.go:79): address unresolved feedback - Review comment
  17. Review (pkg/workflow/lint/unpinned_images.go:41): address unresolved feedback - Review comment
  18. Review (pkg/workflow/taint/shell.go:82): address unresolved feedback - Review comment

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"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

In response to comment 7055692065:

This is an informational reviewer-start reaction and contains no actionable finding. It is preserved without triggering another review.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan
pelikhan merged commit ea7f261 into main Nov 21, 2026
186 checks passed
@pelikhan
pelikhan deleted the pelikhan/studious-guacamole branch November 21, 2026 03:21
Copilot stopped work on behalf of gh-aw-bot due to an error November 21, 2026 03:55
Copilot AI requested a review from gh-aw-bot November 21, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants