chore: sync actions from gh-aw@v0.79.5#149
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Automated sync of the gh-aw action scripts to v0.79.5, updating several setup-time utilities around secret validation, safe-outputs tooling, OTLP span attributes, and sample replay logic.
Changes:
- Add Copilot org-billing aware handling to Copilot token validation and improve branch detection in detached-HEAD scenarios.
- Tighten/adjust safe-outputs behavior for
push_to_pull_request_branchand improve related patch/branch derivation in sample replay. - Ensure OTLP
gh-aw.aicis emitted as a numeric attribute (defaulting to0) when token-usage-owning jobs have no data.
Show a summary per file
| File | Description |
|---|---|
| setup/js/validate_secrets.cjs | Adds Copilot org-billing skip logic for Copilot token checks. |
| setup/js/send_otlp_span.cjs | Ensures gh-aw.aic numeric attribute defaults to 0 when appropriate. |
| setup/js/safe_outputs_tools.json | Updates tool schema for push_to_pull_request_branch (notably around branch handling). |
| setup/js/safe_outputs_handlers.cjs | Derives push_to_pull_request_branch source branch from the current checkout and improves errors. |
| setup/js/get_current_branch.cjs | Improves handling of detached-HEAD by falling back to GitHub env refs. |
| setup/js/comment_memory.cjs | Skips comment-memory upsert when there’s no triggering context. |
| setup/js/apply_samples.cjs | Adds PR head-ref derivation + per-repo token selection; makes pre-staging async. |
| setup/js/add_comment.cjs | Expands allowed target values and warns (instead of failing) on unknown targets. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
setup/js/safe_outputs_tools.json:963
push_to_pull_request_branchuses a strict schema (additionalProperties: false) and the MCP core rejects unknown parameters before the handler runs. Removing thebranchproperty means older clients that still sendbranchwill now hard-fail validation, even though the handler attempts to defensively strip it. If backwards compatibility is intended, keep acceptingbranchin the schema (but document/ignore it).
"properties": {
"message": {
"type": "string",
"description": "Commit message describing the changes. Follow repository commit message conventions (e.g., conventional commits). This field is named message, NOT commit_message.",
"x-synonyms": ["commit_message"]
- Files reviewed: 8/8 changed files
- Comments generated: 1
Comment on lines
+262
to
+266
| return { | ||
| status: Status.SKIPPED, | ||
| message: "Copilot org billing mode — GITHUB_TOKEN is used for Copilot authentication; COPILOT_GITHUB_TOKEN is not required", | ||
| details: { note: "copilot-requests: write is set in the workflow permissions, so the built-in GITHUB_TOKEN handles Copilot authentication" }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync of actions from gh-aw at
v0.79.5.