Repository navigation
Accept self-repository $/ action and reusable workflow references - #75924
Conversation
Co-authored-by: pelikhan <[email protected]>
$/ action and reusable workflow references
|
❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.
|
|
✅ 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.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: 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 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 has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
There was a problem hiding this comment.
Reviewed immutable PR head 2949367 against compiler threat detection v1.0.98/CTR-002 and security architecture v1.1.9/CS-10. The implementation and tests preserve strict SHA pinning for remote actions while safely validating additive @ref suffix, local-path validation, and preserved remote pinning. Static review only; tests were not run per review protocol. Coverage is limited to the captured diff and applicable specifications.
Generated by PR Specification Reviewer for #75924 · copilot · gpt50 · ~7 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again
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 two blocking correctness/coverage issues. The new $/ execution path is not included in workflow_run artifact-execution protection, allowing cross-run artifact content to reach repository code without the existing diagnostic. Also, the end-to-end regression disables validation, so it does not prove that normal compilation accepts these references. Inline comments contain the required fixes. Static review only; tests were not run.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd. The core change is sound and the new tests pass. One non-blocking gap: $/ refs leak into the lock-file header.
📋 Key Themes & Highlights
Key Themes
- Header leak (inline comment):
CollectActionReferencesinredact_secrets.gostill skips only./, so$/refs are listed under "Custom actions used". A compile confirmed this. Not functional, but misleading, and no test asserts the header. - Test coverage:
TestCompilerLintSelfRepositoryReferencescovers all four locations in both strict modes.integrity_test.gocovers valid and malformed$/cases, including the@ref, traversal, and expression rejections.
Positive Highlights
- ✅
$/pass-through inapplyActionPinToTypedStepmatches the existing./handling, and the doc comment is updated. - ✅
integrityReferencereuses the./path checks for$/and still rejects@refsuffixes and malformed paths. - ✅ Compiled end-to-end:
$/some/action,$/.github/workflows/called.yml, and$/some/report-actionpass through unchanged, and$/.github/workflows/called.yml@v1fails with aCTR-002error.
Not verified
safe-outputs.actionsuses: $/...goes throughparseActionUsesField, which only recognises./and../. I did not confirm its behaviour because my scratch config failed schema validation.
@copilot please address the review comment above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 5.4K
Comment /matt to run again
| "$/.github/workflows/called.yml", | ||
| "$/some/report-action", | ||
| } { | ||
| require.Contains(t, string(lock), "uses: "+uses+"\n") |
There was a problem hiding this comment.
[/tdd] The lock header lists $/ refs under "Custom actions used", but ./ refs are excluded. CollectActionReferences (redact_secrets.go, the ./ skip) was not updated, and this test never checks the header, so the gap is untested. A compile confirms it: the header lists $/some/action and $/.github/workflows/called.yml.
💡 Suggested fix
Skip $/ in CollectActionReferences:
if strings.HasPrefix(ref, "./") || strings.HasPrefix(ref, "$/") {
continue
}Then assert the header in this test:
require.NotContains(t, string(lock), "# - $/")@copilot please address this.
There was a problem hiding this comment.
Fixed in 5ed8fa7: CollectActionReferences excludes $/ actions and reusable workflows. Added collector regressions and a compiled-header assertion; the tests fail before the fix and pass afterward.
There was a problem hiding this comment.
🟡 Changes recommended
The collector still excludes only ./, causing newly supported $/ self-repository actions and reusable workflows to be incorrectly listed as external dependencies.
1 open issue
What changed in this PR
Updates gh-aw’s compiler to accept GitHub Actions $/ self-repository action and reusable workflow references without an @ref, addressing #75910.
Changes:
- Passes self-repository actions through pinning unchanged.
- Applies existing repository-relative path validation to
$/references. - Adds regression coverage for supported locations, both strict modes, and malformed references.
| File | Description |
|---|---|
pkg/workflow/lint/integrity.go |
Validates $/ using existing local-path rules. |
pkg/workflow/lint/integrity_test.go |
Covers valid and malformed self-repository references. |
pkg/workflow/compiler_lint_test.go |
Covers compilation across job types and strict modes. |
pkg/workflow/action_pins.go |
Bypasses pin lookup for self-repository actions. |
pkg/workflow/action_pins_test.go |
Verifies self-repository actions remain unchanged. |
Review effort: Max (auto)
| // Local (./...), self-repository ($/...), and Docker image (docker://...) references | ||
| // are valid GitHub Actions syntax that cannot and should not be pinned — emit as-is. | ||
| if strings.HasPrefix(step.Uses, "./") || strings.HasPrefix(step.Uses, "docker://") { | ||
| if strings.HasPrefix(step.Uses, "./") || strings.HasPrefix(step.Uses, "$/") || strings.HasPrefix(step.Uses, "docker://") { |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 2949367
|
Assignment running:
Sous-chef requested-head: 2949367 |
…epository-prefix Co-authored-by: gh-aw-bot <[email protected]>
…parsing Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

gh-aw rejects GitHub Actions’
$/references even withstrict: false. These references resolve against the running workflow’s own repository and commit without an@ref.$/steps through unchanged in agent, custom, and safe-output jobs../path checks to$/, including reusable-workflow paths; continue rejecting@refsuffixes and malformed paths.$/like./for actions and job-level reusable workflow calls #75910