Skip to content

Conversation

vikman90
Copy link
Member

@vikman90 vikman90 commented Jun 5, 2025

Description

The GitHub Actions workflow Build Wazuh agent Mac OS packages is currently failing with exit code 2.

The error appears when trying to unzip the wazuh-agent-binaries-arm64.zip archive, which includes precompiled agent binaries.

The issue is due to the workflow attempting to unzip the archive into the root directory (/), which is read-only in recent macOS versions.

Proposed Changes

  • Modify the job that compresses the binaries to include only the build directory, preserving its relative path.
  • Update the packaging job to unzip the archive relative to ${{ github.workspace }} instead of /.

Results and Evidence

Status Workflow File Name Run
🟢 6_builderpackage_agent-macos #13

Artifacts Affected

  • 6_builderpackage_agent-macos.yml workflow

Review Checklist

  • Code changes reviewed
  • Relevant evidence provided
  • Meets requirements and/or definition of done
  • No unresolved dependencies with other issues

@vikman90 vikman90 requested a review from MarcelKemp June 5, 2025 11:25
@vikman90 vikman90 self-assigned this Jun 5, 2025
@vikman90 vikman90 added the type/bug Bug issue label Jun 5, 2025
@vikman90 vikman90 force-pushed the fix/815-macos-package-builder branch 2 times, most recently from a37a3aa to 3eba90b Compare June 5, 2025 14:04
@vikman90 vikman90 linked an issue Jun 5, 2025 that may be closed by this pull request
@vikman90 vikman90 force-pushed the fix/815-macos-package-builder branch 6 times, most recently from 7c49c38 to ba0ae25 Compare June 6, 2025 09:49
@vikman90 vikman90 force-pushed the fix/815-macos-package-builder branch 2 times, most recently from e7d7061 to 854641a Compare June 6, 2025 10:12
@vikman90 vikman90 marked this pull request as ready for review June 6, 2025 10:13
@vikman90 vikman90 merged commit 2746708 into main Jun 6, 2025
17 checks passed
@vikman90 vikman90 deleted the fix/815-macos-package-builder branch June 6, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug Bug issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update GitHub Actions and Workflows for version 6.0

2 participants