-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 944 Bytes
/
Copy pathexample-usage.yml
File metadata and controls
32 lines (27 loc) · 944 Bytes
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
name: Example — self-hosted usage of the action
# Dogfoods this repository's own GitHub Action against the sample inventory
# in examples/. Runs on every push/PR to main so the action itself is
# continuously verified against a real workflow run, not just unit tests.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
audit-sample-inventory:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Run predictive-ml-core on the sample inventory
id: predictive
uses: ./
with:
inventory-json: examples/inventory.json
fail-on-severity: '' # report-only in this example
- name: Show outputs
run: |
echo "overall-score=${{ steps.predictive.outputs.overall-score }}"
echo "finding-count=${{ steps.predictive.outputs.finding-count }}"