From ecb486f6256b8155b9b46a39b06bb79dcfdc5d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Wed, 12 Nov 2025 16:52:27 -0300 Subject: [PATCH] GH issue creation commands --- .../Procedure_push_docker_images.yml | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Procedure_push_docker_images.yml b/.github/workflows/Procedure_push_docker_images.yml index 58a83873..3b0518b9 100644 --- a/.github/workflows/Procedure_push_docker_images.yml +++ b/.github/workflows/Procedure_push_docker_images.yml @@ -191,13 +191,15 @@ jobs: GH_MESSAGE="" PURPOSE="${{ steps.validation.outputs.purpose }}" - + ## Setting GH issue title GH_TITLE="Artifactory vulnerabilities update \`v$IMAGE_TAG\`" + ## Setting GH issue body GH_MESSAGE=$(cat <<- EOF | tr -d '\r' | sed 's/^[[:space:]]*//' ### Description - - [ ] Update the [Artifactory vulnerabilities](https://docs.google.com/spreadsheets/d/1ZtkyvmZ_CS9fa0nEmZf9sZb4a3o65_HoMP1g83XmlK0/edit?usp=sharing) sheet with the \`$IMAGE_TAG\` vulnerabilities. + - [ ] Update the [Artifactory vulnerabilities](https://docs.google.com/spreadsheets/d/1ZtkyvmZ_CS9fa0nEmZf9sZb4a3o65_HoMP1g83XmlK0/edit?usp=sharing) sheet with the \`v$IMAGE_TAG\` vulnerabilities. + **Purpose**: $PURPOSE >[!NOTE] >To update the \`Tentative Release\` column, follow these steps: https://github.com/wazuh/wazuh-automation/issues/2049#issuecomment-2671590268 @@ -213,3 +215,20 @@ jobs: echo "$GH_MESSAGE" echo "------------------------" + ## GH issue creation + ISSUE_URL=$(gh issue create \ + -R wazuh/${{ secrets.NOTIFICATION_REPO }} \ + --title $GH_TITLE \ + --body $GH_MESSAGE \ + --label "level/task" \ + --label "type/maintenance" \ + --label "request/operational" \ + --json url -q .url) + + ## Adding the issue to the team project + gh project item-add \ + ${{ secrets.NOTIFICATION_PROJECT_ID }} \ + --url $ISSUE_URL + + env: + GH_TOKEN: ${{ secrets.NOTIFICATION_GH_ARTIFACT_TOKEN }}