From cfeb8d0970d407bd71fa756ca29429460caf0ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Chapron?= <34628915+sc979@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:47:34 +0100 Subject: [PATCH] chore(ci): remove component name and avoid incident report on draft pr (#129) * fix(ci): remove component name and test * exclude draft pr --- .github/actions/veracode-create-jira-ticket/action.yml | 5 ----- .github/workflows/veracode-analysis.yml | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/actions/veracode-create-jira-ticket/action.yml b/.github/actions/veracode-create-jira-ticket/action.yml index b8e3c95245..bbff79f172 100644 --- a/.github/actions/veracode-create-jira-ticket/action.yml +++ b/.github/actions/veracode-create-jira-ticket/action.yml @@ -41,11 +41,6 @@ runs: - name: Create Jira Issue if: ${{ env.abort_ticket_creation != 'true' }} run: | - component_name="${{ inputs.module_name }}" - if [[ "${{ inputs.module_name }}" == "centreon" ]]; then - component_name="centreon-web" - fi - DATA=$( cat <<-EOF { "fields": { diff --git a/.github/workflows/veracode-analysis.yml b/.github/workflows/veracode-analysis.yml index 2e421fece5..606a9a7f91 100644 --- a/.github/workflows/veracode-analysis.yml +++ b/.github/workflows/veracode-analysis.yml @@ -136,7 +136,7 @@ jobs: - name: Backup analysis reports # debug step used to investigate support case - if: vars.VERACODE_BACKUP_DEBUG == 'true' || failure() + if: vars.VERACODE_BACKUP_DEBUG == 'true' || (failure() && github.event.pull_request.draft == false) run: | echo "[DEBUG] downloaded baseline details in /tmp" ls -la /tmp @@ -202,7 +202,7 @@ jobs: - name: Save baseline files # only baseline files not generated from a development branch are saved - if: vars.VERACODE_BACKUP_DEBUG == 'true' || failure() + if: vars.VERACODE_BACKUP_DEBUG == 'true' || (failure() && github.event.pull_request.draft == false) run: | BRANCHES=(dev master) for BRANCH in "${BRANCHES[@]}"; do