chore: sync actions from gh-aw@v0.80.4#161
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Synces the repository’s setup/ and setup-cli/ action scripts from github/gh-aw@v0.80.4, updating safe-outputs behavior, Copilot SDK session handling, and GitHub API interactions to match upstream.
Changes:
- Stage safe-outputs assets under
RUNNER_TEMPand improve asset upload handling when declared assets are missing. - Harden/clarify safe-outputs comment behavior for discussions (config gating + better permission-mismatch handling).
- Improve robustness in log parsing (strip NUL bytes) and enable test redirection for Copilot SDK session state output.
Show a summary per file
| File | Description |
|---|---|
| setup/js/upload_assets.cjs | Uses RUNNER_TEMP for asset staging; skips missing assets with warnings and fails when all declared assets are missing. |
| setup/js/safe_outputs_handlers.cjs | Writes assets into RUNNER_TEMP and adds an early guard for discussion-only add_comment requests when discussions aren’t enabled. |
| setup/js/parse_mcp_gateway_log.cjs | Strips NUL bytes from gateway.md to avoid garbled step summaries. |
| setup/js/copilot_sdk_session.cjs | Adds sessionStateBaseDir/env override to redirect session-state writes (useful for tests). |
| setup/js/assign_agent_helpers.cjs | Updates GraphQL queries and expands fallback assignment mutation to include agent-assignment parameters. |
| setup/js/add_comment.cjs | Detects “resource not accessible by integration” for discussion comment attempts and skips with actionable guidance. |
| setup-cli/install.sh | Updates sync note to clarify canonical script source. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 7/7 changed files
- Comments generated: 1
Comment on lines
+167
to
+170
| if (uploadCount === 0 && missingAssetCount > 0 && missingAssetCount === uploadItems.length) { | ||
| core.setFailed(`All ${missingAssetCount} declared assets were missing; no assets published.`); | ||
| return; | ||
| } |
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.80.4.