mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
add malware scan
This commit is contained in:
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@@ -10,8 +10,16 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Supply-chain gate. Every other job depends on this, so a malware detection
|
||||
# blocks the entire deploy before any build, migration or container starts.
|
||||
malware-scan:
|
||||
name: Malware gate
|
||||
uses: ./.github/workflows/malware-scan.yml
|
||||
secrets: inherit
|
||||
|
||||
detect-changes:
|
||||
name: Detect changed services
|
||||
needs: malware-scan
|
||||
runs-on: ${{ fromJson(format('["self-hosted", "{0}"]', github.ref_name)) }}
|
||||
outputs:
|
||||
matrix: ${{ steps.filter.outputs.matrix }}
|
||||
@@ -90,7 +98,7 @@ jobs:
|
||||
|
||||
deploy:
|
||||
name: Deploy ${{ matrix.service }}
|
||||
needs: detect-changes
|
||||
needs: [malware-scan, detect-changes]
|
||||
if: ${{ needs.detect-changes.outputs.matrix != '[]' }}
|
||||
runs-on: ${{ fromJson(format('["self-hosted", "{0}"]', github.ref_name)) }}
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user