Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checksum input and update the upload files to S3 steps #106

Conversation

Enaraque
Copy link
Member

@Enaraque Enaraque commented Oct 11, 2024

Description

The goal of this PR is to add the mandatory checksum field to the workflow for building the installation assistant packages.

With this, a new step has been added to generate the sha512 files and another step to upload them to S3.

Additionally, an echo with the URI of each file uploaded to S3 has been added to better identify it.

Note

This step implies that we have to upload the installation assistant files one by one to correctly obtain the URI of each file.

Workflow output test

Related issue

@Enaraque Enaraque requested a review from a team October 11, 2024 16:09
@Enaraque Enaraque self-assigned this Oct 11, 2024
@Enaraque Enaraque linked an issue Oct 11, 2024 that may be closed by this pull request
@Enaraque Enaraque requested a review from rauldpm October 11, 2024 16:12
run: |
aws s3 cp ${{ github.workspace }}/${{ env.WAZUH_VERSION }}/${{ env.WAZUH_INSTALL_NAME }}.sha512 s3://${{ env.S3_BUCKET }}/${{ env.S3_REPOSITORY_PATH }}/${{ env.WAZUH_VERSION }}/
s3uri="s3://${{ env.S3_BUCKET }}/${{ env.S3_REPOSITORY_PATH }}/${{ env.WAZUH_VERSION }}/${{ env.WAZUH_INSTALL_NAME }}.sha512"
echo "S3 sha512 wazuh-install-tool checksum URI: ${s3uri}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the -tool string from wazuh-install.

Copy link
Member Author

@Enaraque Enaraque Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b0b7347 and 632a162

id:
description: "ID used to identify the workflow uniquely."
type: string
required: false
workflow_call:
inputs:
WAZUH_INSTALLATION_ASSISTANT_REFERENCE:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use lowercase for the input names: WAZUH_INSTALLATION_ASSISTANT_REFERENCE
Lines: 7 and 25, and update the references.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b0b7347

@Enaraque Enaraque requested a review from teddytpc1 October 16, 2024 14:54
@c-bordon c-bordon merged commit f4e98fe into 4.10.0 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wazuh installation assistant workflow misses the checksum input
3 participants