-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.13 KB
/
custom-attestation-types.yml
File metadata and controls
39 lines (32 loc) · 1.13 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
name: Custom Attestation Types
on:
push:
paths:
- 'custom-attestation-types/**'
- '.github/workflows/custom-attestation-types.yml'
env:
KOSLI_CLI_VERSION: 2.11.26
KOSLI_ORG: kosli-public
KOSLI_FLOW: demo-app
KOSLI_API_TOKEN: '${{ secrets.KOSLI_API_TOKEN }}'
jobs:
update-custom-types:
name: Create or Update Custom Attestation Types
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Kosli cli
uses: kosli-dev/setup-cli-action@v2
with:
version: ${{ env.KOSLI_CLI_VERSION }}
- name: Create coverage metrics attestation type
run: kosli create attestation-type coverage-metrics
--description "Coverage metrics attestation type"
--schema custom-attestation-types/coverage.schema.json
--jq ".coverage > 50"
- name: Create manual approval attestation type
run: kosli create attestation-type manual-approval
--description "Manual approval attestation type"
--schema custom-attestation-types/manual-approval.schema.json
--jq ".approval_status == 'approved'"