Address #394 review: drop dead gh-aw step and stale maintenance workflow#395
Address #394 review: drop dead gh-aw step and stale maintenance workflow#395jonathanpeppers wants to merge 1 commit into
Conversation
…enance workflow - Remove the 'Install gh-aw extension' step from copilot-setup-steps.yml. It was added in #346 for the old skill-based reviewer; the Copilot coding agent does not invoke gh aw itself, and the /review reviewer is now a self-contained agentic workflow. - Recompile android-tools-reviewer.md with gh-aw v0.81.6 (was v0.79.8). Bumps github/gh-aw-actions/setup pin to v0.81.6 in actions-lock.json and the generated lock workflow. - Bump validate-pat-pool.yml to the same v0.81.6 setup pin so it matches the lock. - Delete the auto-generated agentics-maintenance.yml. v0.81.6 no longer emits it for this repo (we do not use the 'expires' field), so it is dead code; recompile no longer regenerates it. This resolves #394 (comment) by making actions-lock.json the truthful authoritative lock for all gh-aw action usages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
/review |
|
✅ Android Tools PR Reviewer completed successfully! |
There was a problem hiding this comment.
Pull request overview
This PR cleans up gh-aw workflow usage so .github/aw/actions-lock.json stays accurate by removing dead setup-cli usage, updating the gh-aw setup action pin to v0.81.6, and dropping an unneeded generated maintenance workflow.
Changes:
- Remove the unused
github/gh-aw-actions/setup-clistep fromcopilot-setup-steps.yml. - Update gh-aw
setupaction pinning (and the generated reviewer lock workflow) to v0.81.6. - Delete the generated
.github/workflows/agentics-maintenance.ymlworkflow which is no longer emitted/needed.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/validate-pat-pool.yml | Bumps github/gh-aw-actions/setup to v0.81.6 for PAT pool validation workflow. |
| .github/workflows/copilot-setup-steps.yml | Drops dead setup-cli install step, keeping the workflow minimal. |
| .github/workflows/android-tools-reviewer.lock.yml | Regenerated lock workflow with v0.81.6 pins and updated runtime/script details. |
| .github/workflows/agentics-maintenance.yml | Removes stale generated maintenance workflow no longer produced/used. |
| .github/aw/actions-lock.json | Updates pinned gh-aw setup entry to v0.81.6 SHA to reflect actual usage. |
Comments suppressed due to low confidence (1)
.github/workflows/validate-pat-pool.yml:29
- After bumping
github/gh-aw-actions/setupto v0.81.6, this workflow still installs GitHub Copilot CLI1.0.63. The generatedandroid-tools-reviewer.lock.ymlmoved to1.0.65, so keepingvalidate-pat-pool.ymlon the older CLI makes the PAT validation behavior drift from what/reviewactually runs and can hide compatibility issues.
uses: github/gh-aw-actions/setup@ba6380cc6e5be5d21677bebe04d52fb48e3abec7 # v0.81.6
with:
destination: ${{ runner.temp }}/gh-aw/actions
- name: Install Copilot CLI
There was a problem hiding this comment.
✅ LGTM
Clean, well-scoped follow-up to #394. I formed an independent read of the diff before the description and reached the same conclusion: this is a faithful gh aw recompile plus dead-code removal, with no behavioral risk.
Verified independently:
- ✅
setup-cliis gone from the entire.github/tree — nothing references it anymore, so dropping the unpinnedsetup-cli@v0.68.3step fromcopilot-setup-steps.ymlis safe. (The step was only needed back when the reviewer shelled out togh aw; the agentic workflow doesn't.) - ✅ The
setupaction SHA bump (v0.80.9→v0.81.6,ba6380cc...) is internally consistent acrossactions-lock.json,validate-pat-pool.yml, and all sixuses:inandroid-tools-reviewer.lock.yml. - ✅
android-tools-reviewer.lock.ymlmetadata now reports"compiler_version":"v0.81.6"; the rest of that 144-line diff is just version-string env bumps (GH_AW_INFO_*, AWFv0.27.7→v0.27.11) and the newGH_AW_RUNTIME_FEATURESpassthrough — all expected compiler output, no permission or trigger changes. - ✅ Deleting
agentics-maintenance.ymlleaves zero dangling references anywhere in the tree. - ✅ CI green (license/cla, copilot-pull-request-reviewer, copilot-setup-steps).
Issues: 0 errors · 0 warnings · 1 suggestion (inline)
The only thing the diff can't self-prove is that ba6380cc... is genuinely tag v0.81.6 upstream — flagged inline as a quick sanity check. Since it came straight out of gh aw compile --approve, I'd expect it's correct. Nice cleanup removing 685 lines of generated boilerplate while keeping the lock truthful.
Generated by Android Tools PR Reviewer for issue #395 · 141.5 AIC · ⌖ 26.2 AIC · ⊞ 6.5K
Comment /review to run again
| steps: | ||
| - name: Setup gh-aw scripts | ||
| uses: github/gh-aw-actions/setup@8c7d04ebf1ece56cd381446125da3e0f6896294a # v0.80.9 | ||
| uses: github/gh-aw-actions/setup@ba6380cc6e5be5d21677bebe04d52fb48e3abec7 # v0.81.6 |
There was a problem hiding this comment.
🤖 💡 Security — Good: this bumps the pinned setup action to a full commit SHA (ba6380cc...) with a # v0.81.6 tag comment, and the same SHA is used consistently in .github/aw/actions-lock.json and the six setup@ uses in android-tools-reviewer.lock.yml. The one thing the lock can't self-verify is that ba6380cc... really is tag v0.81.6 of github/gh-aw-actions/setup upstream — worth a 30-second confirm, since a wrong-but-consistent SHA would still look clean here.
Rule: Pin third-party actions to a full commit SHA (Security: Process & Command Safety)
Follow-up to the review comment on #394 (discussion_r3493138136) pointing out that
actions-lock.jsonno longer pinned thegh-aw-actions/setup-cliSHAs still referenced by two workflows. Rather than re-adding the pins, this PR removes the actual usages so the lock stays minimal and truthful.Changes
Install gh-aw extensionstep from.github/workflows/copilot-setup-steps.yml. It was added in Add/reviewagentic workflow for android-tools-reviewer #346 back when the reviewer was a Copilot CLI skill that shelled out togh api. The reviewer is now a self-contained agentic workflow triggered by/review, and the Copilot coding agent itself never invokesgh aw, so the step is dead weight.android-tools-reviewer.mdwith gh-aw v0.81.6 (was v0.79.8). Bumpsgithub/gh-aw-actions/setupto v0.81.6 inactions-lock.jsonand the regenerated reviewer lock workflow..github/workflows/agentics-maintenance.yml. v0.81.6 no longer emits this sibling maintenance workflow for this repo (we don't use theexpiressafe-output field that triggered its generation), and recompile confirms it does not come back. 685 lines of generated boilerplate gone.validate-pat-pool.ymlto the matching v0.81.6setupSHA so it stays in sync with the lock.Net effect:
actions-lock.jsononce again accurately reflects every gh-aw action used in the repo, with nosetup-clireferences anywhere.Validation
gh aw compile .github/workflows/android-tools-reviewer.md --schedule-seed dotnet/android-tools --approve(clean, 0 errors / 0 warnings, does not regenerate the maintenance workflow)setup-cli