-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.01 KB
/
test.yml
File metadata and controls
37 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test Precogs Action
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test-free-tier:
name: Test Free Tier (secrets + deps)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Precogs Security Scan (free tier)
id: scan
uses: ./
with:
scan-code: 'false'
fail-on-findings: 'false'
- name: Print results
run: |
echo "Total findings: ${{ steps.scan.outputs.findings-count }}"
echo "Critical: ${{ steps.scan.outputs.critical-count }}"
echo "High: ${{ steps.scan.outputs.high-count }}"
echo "Secrets: ${{ steps.scan.outputs.secrets-count }}"
- name: Verify findings detected
run: |
if [ "${{ steps.scan.outputs.findings-count }}" -eq "0" ]; then
echo "❌ FAIL: Expected findings but got 0"
exit 1
fi
echo "✅ PASS: Detected ${{ steps.scan.outputs.findings-count }} findings"