Revert "[PM-19821] Consolidate scan.yml and scan-ci.yml" (#5058)

This commit is contained in:
Álison Fernandes
2025-04-15 15:42:01 +01:00
committed by GitHub
parent b6d9bee266
commit 18c7333cf3
2 changed files with 63 additions and 9 deletions

View File

@@ -1,13 +1,7 @@
name: Scan
name: Scan Pull Requests
on:
workflow_dispatch:
push:
branches:
- "main"
- "release/**"
- "rc"
- "hotfix-rc"
pull_request_target:
types: [opened, synchronize]
@@ -29,7 +23,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Scan with Checkmarx
uses: checkmarx/ast-github-action@184bf2f64f55d1c93fd6636d539edf274703e434 # 2.0.41
@@ -66,7 +60,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Scan with SonarCloud
uses: sonarsource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1