Fix firewall log artifact upload permission error#10143
Merged
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Added chmod command to make firewall logs readable by runner before artifact upload. AWF runs with sudo and creates logs owned by root, causing permission denied errors. Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI failure in agentics workflow
Fix firewall log artifact upload permission error
Jan 15, 2026
Collaborator
|
@copilot merge main and regenerate |
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Contributor
Author
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.
CI Doctor Workflow Failure Investigation & Fix
Root Cause Analysis
/tmp/gh-aw/sandbox/firewall/logs/access.logsudo, creates logs owned by root, but runner cannot read themImplementation Details
Modified
pkg/workflow/copilot_srt.goin thegenerateFirewallLogParsingStepfunction to add asudo chmod -R a+rcommand that makes the firewall log files readable by the GitHub Actions runner before attempting to upload them as artifacts.Root Cause: The
awffirewall binary runs withsudoprivileges and creates log files owned by root in/tmp/gh-aw/sandbox/firewall/logs/. When GitHub Actions tries to upload these files as artifacts, the runner user lacks read permissions, causing anEACCES: permission deniederror.Solution: Before parsing and uploading firewall logs, the step now executes
sudo chmod -R a+r /tmp/gh-aw/sandbox/firewall/logs 2>/dev/null || trueto make all files in the directory readable by all users. The command is wrapped with error suppression (|| true) to ensure it doesn't fail if the directory doesn't exist.Latest Changes:
Testing:
TestCopilotEngineRenderGitHubMCPConfig(unrelated to this fix)Files Modified:
pkg/workflow/copilot_srt.go- Added permission fix in firewall log parsing step.lock.ymlfiles - Recompiled with the fix and merged with mainAll workflows with firewall support (Copilot, Claude, Codex engines) now include this permission fix.
Pre-existing Issue
Note:
TestCopilotEngineRenderGitHubMCPConfigwas already failing before this PR due to changes in GitHub MCP server configuration format (container vs Docker local mode). This is unrelated to the firewall logs permission fix.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.