From 2f3b9aa4b93a18d992de30783276ae69a8bc8343 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Wed, 11 Feb 2026 03:40:13 -0800 Subject: [PATCH] ci: add AgentShield security scan workflow --- .github/workflows/security-scan.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/security-scan.yml diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml new file mode 100644 index 0000000..ce85c71 --- /dev/null +++ b/.github/workflows/security-scan.yml @@ -0,0 +1,35 @@ +name: AgentShield Security Scan + +on: + push: + branches: [main] + pull_request: + branches: [main] + +# Prevent duplicate runs +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +# Minimal permissions +permissions: + contents: read + +jobs: + agentshield: + name: AgentShield Scan + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Run AgentShield security scan + run: npx ecc-agentshield scan --path . --min-severity medium --format terminal + continue-on-error: true # Informational only — ECC contains intentional config examples