-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.83 KB
/
Copy pathintegration-contract.yml
File metadata and controls
67 lines (55 loc) · 1.83 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: integration-contract
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: integration-contract-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-contract:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
# actions/checkout v4.2.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Python
# actions/setup-python v5.6.0
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip==25.1.1
python -m pip install -e ".[dev]"
- name: Verify source evidence
run: |
make verify-findings-evidence
make verify-release-evidence
make verify-lifecycle-evidence
make verify-consolidated-evidence
make verify-champions-evidence
- name: Validate integration contract
run: |
make integration-policy-validate
make integration-export
make integration-validate
make verify-integration-evidence
- name: Run integration tests
run: |
PYTHONPATH=src pytest tests/security/test_integration_contract.py -q
- name: Sample consumer validation
run: |
python examples/integration-consumer/validate_bundle.py outputs/security/integration
- name: Generate reports
run: make integration-report
- name: Upload export bundle
# actions/upload-artifact v4.6.2
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: product-security-export-bundle
path: outputs/security/integration/
retention-days: 14