add malware scan

This commit is contained in:
SennayT
2026-08-07 07:45:14 +00:00
parent 73edf1fffa
commit 87a6c6df84
4 changed files with 560 additions and 14 deletions

View File

@@ -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: