Skip to content

Commit

Permalink
chore(ci): remove component name and avoid incident report on draft pr (
Browse files Browse the repository at this point in the history
#129)

* fix(ci): remove component name and test

* exclude draft pr
  • Loading branch information
sc979 authored Mar 5, 2024
1 parent d30b99b commit cfeb8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/actions/veracode-create-jira-ticket/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/veracode-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cfeb8d0

Please sign in to comment.