Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client_reference/kosli_assert_artifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ non-zero code if non-compliant status.
<Tab title="GitHub">
View an example of the `kosli assert artifact` command in GitHub.

In [this YAML file](https://github.com/cyber-dojo/differ/blob/a9cdf63c5ed2288935a77a46ccd4a35b2bfb2300/.github/workflows/main.yml#L271)
In [this YAML file](https://github.com/cyber-dojo/differ/blob/8beff9901ac67acb7afcab3408106208571a1124/.github/workflows/main.yml#L271)
</Tab>
<Tab title="GitLab">
View an example of the `kosli assert artifact` command in GitLab.
Expand Down
2 changes: 1 addition & 1 deletion client_reference/kosli_attest_artifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ In other CI systems, set them explicitly to capture repository metadata.
<Tab title="GitHub">
View an example of the `kosli attest artifact` command in GitHub.

In [this YAML file](https://github.com/cyber-dojo/reusable-actions-workflows/blob/10a0ea436537939e27118c9d5a33400a6049b0e9/.github/workflows/secure-docker-build.yml#L228), which created [this Kosli Event](https://app.kosli.com/cyber-dojo/flows/differ-ci/trails/26dcd06257a4bb00d594dbb5de05eefbb7b20379?attestation_id=494ad51d-feff-4795-9fec-f2a8b953).
In [this YAML file](https://github.com/cyber-dojo/reusable-actions-workflows/blob/25f0b797c18403de1c8490a9a71bbe9789c809a9/.github/workflows/secure-docker-build.yml#L210), which created [this Kosli Event](https://app.kosli.com/cyber-dojo/flows/differ-ci/trails/26dcd06257a4bb00d594dbb5de05eefbb7b20379?attestation_id=494ad51d-feff-4795-9fec-f2a8b953).
</Tab>
<Tab title="GitLab">
View an example of the `kosli attest artifact` command in GitLab.
Expand Down
2 changes: 1 addition & 1 deletion client_reference/kosli_create_attestation-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ All rules must return `true` for the evaluation to pass and the attestation to b
<Tab title="GitHub">
View an example of the `kosli create attestation-type` command in GitHub.

In [this YAML file](https://github.com/cyber-dojo/kosli-attestation-types/blob/e64e96a8bdac8490c348742d83f15bff4ffa435c/.github/workflows/main.yml#L30)
In [this YAML file](https://github.com/cyber-dojo/kosli-attestation-types/blob/b4596ac88e5a447cb0c8fa3aaf7a5cbf4c9b0c57/.github/workflows/main.yml#L30)
</Tab>
</Tabs>

Expand Down
135 changes: 95 additions & 40 deletions client_reference/kosli_diff_snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,67 +66,92 @@ kosli diff snapshots aws-beta aws-prod --output=json
```json
{
"snappish1": {
"snapshot_id": "aws-beta#7619",
"snapshot_id": "aws-beta#7649",
"artifacts": [
{
"fingerprint": "1a699e33bfd10607ba32dfd4189c4a3a33b552575ae7907554a7066add925ead",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:00e4f4d@sha256:1a699e33bfd10607ba32dfd4189c4a3a33b552575ae7907554a7066add925ead",
"most_recent_timestamp": 1783169640,
"flow": "dashboard-ci",
"commit_url": "https://github.com/cyber-dojo/dashboard/commit/00e4f4d5a7ab11c02e72c01eb807cfff344c27d4",
"fingerprint": "0744a611723cb72a3f24b33c2d56fcbb1bfbedf0637a962f259fada8e3dbbe50",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:7e00b70@sha256:0744a611723cb72a3f24b33c2d56fcbb1bfbedf0637a962f259fada8e3dbbe50",
"most_recent_timestamp": 1783539093,
"flow": "creator-ci",
"commit_url": "https://github.com/cyber-dojo/creator/commit/7e00b70f8911edf1c480ba9a8b9c2a280260cb08",
"instance_count": 1
},
{
"fingerprint": "73bd6891f717f49667ce1d3509e556eafea5034688df97393b568a1539bb7818",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:14c6177@sha256:73bd6891f717f49667ce1d3509e556eafea5034688df97393b568a1539bb7818",
"most_recent_timestamp": 1783331712,
"flow": "creator-ci",
"commit_url": "https://github.com/cyber-dojo/creator/commit/14c617795f36593d9195e692ce44baca84fd019c",
"fingerprint": "0a858af40ca7a862ac1ba6a895e75c9030097f5890e9cc37c828e4adc55940e7",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/nginx:9b711df@sha256:0a858af40ca7a862ac1ba6a895e75c9030097f5890e9cc37c828e4adc55940e7",
"most_recent_timestamp": 1783606120,
"flow": "nginx-ci",
"commit_url": "https://github.com/cyber-dojo/nginx/commit/9b711df71c76a1f293c2525ace65778036591baf",
"instance_count": 1
},
{
"fingerprint": "54f6da185cd0f0ef001a0b33c099565fa736546562e0411f706832e72dca47bb",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:e475768@sha256:54f6da185cd0f0ef001a0b33c099565fa736546562e0411f706832e72dca47bb",
"most_recent_timestamp": 1783538813,
"flow": "dashboard-ci",
"commit_url": "https://github.com/cyber-dojo/dashboard/commit/e4757683b74df7033c95aa544a7824b395c2f8bb",
"instance_count": 1
},
{
"fingerprint": "aca3fd625101b9d14b879e7ef0612b82d69bf1c1f7626e4d9074b2ac2d2f3c0e",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/differ:a9cdf63@sha256:aca3fd625101b9d14b879e7ef0612b82d69bf1c1f7626e4d9074b2ac2d2f3c0e",
"most_recent_timestamp": 1783417896,
"fingerprint": "6e10030b8176ee0f17f74a1ca59a22ae05ab74affa7221b4e685d70a6db100a0",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/web:9900d7e@sha256:6e10030b8176ee0f17f74a1ca59a22ae05ab74affa7221b4e685d70a6db100a0",
"most_recent_timestamp": 1783538560,
"flow": "web-ci",
"commit_url": "https://github.com/cyber-dojo/web/commit/9900d7eae155e4434028345208d4049143612e8e",
"instance_count": 3
},
{
"fingerprint": "7e2d411aedcf779dc4be7da47957f698696df954a7f557688d0052e9a18218fc",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/differ:8beff99@sha256:7e2d411aedcf779dc4be7da47957f698696df954a7f557688d0052e9a18218fc",
"most_recent_timestamp": 1783540473,
"flow": "differ-ci",
"commit_url": "https://github.com/cyber-dojo/differ/commit/a9cdf63c5ed2288935a77a46ccd4a35b2bfb2300",
"commit_url": "https://github.com/cyber-dojo/differ/commit/8beff9901ac67acb7afcab3408106208571a1124",
"instance_count": 1
}
]
},
"snappish2": {
"snapshot_id": "aws-prod#4969",
"artifacts": [
},
{
"fingerprint": "4d1ba1622515a86443d2ec4b76df41daa7b98daabeb557a134607f6e200e8ebc",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:6d203a8@sha256:4d1ba1622515a86443d2ec4b76df41daa7b98daabeb557a134607f6e200e8ebc",
"most_recent_timestamp": 1783075608,
"flow": "dashboard-ci",
"commit_url": "https://github.com/cyber-dojo/dashboard/commit/6d203a85ffda1513db4d86d4e48b1f969bd2f510",
"fingerprint": "86c346b9d28ffba48419f0d36db13d0262dc923d3794da851dd61e324b033b5f",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/custom-start-points:da04517@sha256:86c346b9d28ffba48419f0d36db13d0262dc923d3794da851dd61e324b033b5f",
"most_recent_timestamp": 1783536067,
"flow": "custom-start-points-ci",
"commit_url": "https://github.com/cyber-dojo/custom-start-points/commit/da045178c3d695ff19e914004d546dcc31a918a6",
"instance_count": 1
},
{
"fingerprint": "8f01c6f92f1226465177b079c360d26898315356b172042f8dedb593c95d2dd7",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/differ:26dcd06@sha256:8f01c6f92f1226465177b079c360d26898315356b172042f8dedb593c95d2dd7",
"most_recent_timestamp": 1783075532,
"flow": "differ-ci",
"commit_url": "https://github.com/cyber-dojo/differ/commit/26dcd06257a4bb00d594dbb5de05eefbb7b20379",
"fingerprint": "a07b93ce0975df90f08f0dc171105a4f6e61e5b91aaf5ca9874d372084e1b613",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/exercises-start-points:804f248@sha256:a07b93ce0975df90f08f0dc171105a4f6e61e5b91aaf5ca9874d372084e1b613",
"most_recent_timestamp": 1783536467,
"flow": "exercises-start-points-ci",
"commit_url": "https://github.com/cyber-dojo/exercises-start-points/commit/804f248d832dc34e564507b009c246dfb4f0c657",
"instance_count": 1
},
{
"fingerprint": "a523828dc47cd4f31aecf2d5ef1dea569944a1abcd214e4b2cda50676b2c4dc8",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:6ff6b4c@sha256:a523828dc47cd4f31aecf2d5ef1dea569944a1abcd214e4b2cda50676b2c4dc8",
"most_recent_timestamp": 1783075863,
"flow": "creator-ci",
"commit_url": "https://github.com/cyber-dojo/creator/commit/6ff6b4c71ab218d39065654bef32839b9226d21f",
"fingerprint": "b65f224d822ea1b3702a1154c1bd088f27906393755b73c570aefa054ef4211b",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/runner:627315a@sha256:b65f224d822ea1b3702a1154c1bd088f27906393755b73c570aefa054ef4211b",
"most_recent_timestamp": 1783538983,
"flow": "runner-ci",
"commit_url": "https://github.com/cyber-dojo/runner/commit/627315ab66d5250fec7ec574b073f1095879a8a4",
"instance_count": 3
},
{
"fingerprint": "e930c316594afc43877740e30d7ac95cdadcf753a2b8a51935652c9531def452",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/saver:b8e6c03@sha256:e930c316594afc43877740e30d7ac95cdadcf753a2b8a51935652c9531def452",
"most_recent_timestamp": 1783539683,
"flow": "saver-ci",
"commit_url": "https://github.com/cyber-dojo/saver/commit/b8e6c03975a5701e3e8d198549f463989f1a00f4",
"instance_count": 1
},
{
"fingerprint": "f4ed92af30318fe8230648a2fc1f482970ad0ef821eeaaeac76759cd8fe03418",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/languages-start-points:c6db342@sha256:f4ed92af30318fe8230648a2fc1f482970ad0ef821eeaaeac76759cd8fe03418",
"most_recent_timestamp": 1783536888,
"flow": "languages-start-points-ci",
"commit_url": "https://github.com/cyber-dojo/languages-start-points/commit/c6db342472238a7852b6ff31b04f9a6a6099f5cf",
"instance_count": 1
}
]
},
"changed": {
"artifacts": []
},
"not-changed": {
"snappish2": {
"snapshot_id": "aws-prod#4972",
"artifacts": [
{
"fingerprint": "1912e229b2a9e288d099af648ebcb993c16976284f61578a3730d35c33329b59",
Expand All @@ -144,6 +169,14 @@ kosli diff snapshots aws-beta aws-prod --output=json
"commit_url": "https://github.com/cyber-dojo/custom-start-points/commit/fc6b09be0518fbf8ab76815cb85b1745631e3659",
"instance_count": 1
},
{
"fingerprint": "4d1ba1622515a86443d2ec4b76df41daa7b98daabeb557a134607f6e200e8ebc",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:6d203a8@sha256:4d1ba1622515a86443d2ec4b76df41daa7b98daabeb557a134607f6e200e8ebc",
"most_recent_timestamp": 1783075608,
"flow": "dashboard-ci",
"commit_url": "https://github.com/cyber-dojo/dashboard/commit/6d203a85ffda1513db4d86d4e48b1f969bd2f510",
"instance_count": 1
},
{
"fingerprint": "579d2668834cf42f3004e005c295d340dfd3da5b33f394d3151c016dc9f074a4",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/runner:28fc01e@sha256:579d2668834cf42f3004e005c295d340dfd3da5b33f394d3151c016dc9f074a4",
Expand All @@ -160,6 +193,14 @@ kosli diff snapshots aws-beta aws-prod --output=json
"commit_url": "https://github.com/cyber-dojo/exercises-start-points/commit/80b913e9f88902428a3567f75165d8b9d73b561a",
"instance_count": 1
},
{
"fingerprint": "8f01c6f92f1226465177b079c360d26898315356b172042f8dedb593c95d2dd7",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/differ:26dcd06@sha256:8f01c6f92f1226465177b079c360d26898315356b172042f8dedb593c95d2dd7",
"most_recent_timestamp": 1783075532,
"flow": "differ-ci",
"commit_url": "https://github.com/cyber-dojo/differ/commit/26dcd06257a4bb00d594dbb5de05eefbb7b20379",
"instance_count": 1
},
{
"fingerprint": "929748bb88b31863da9cd8d62a5039c274ff3c669f2ef05bc025e6989d2c1eab",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/web:97ebee5@sha256:929748bb88b31863da9cd8d62a5039c274ff3c669f2ef05bc025e6989d2c1eab",
Expand All @@ -168,6 +209,14 @@ kosli diff snapshots aws-beta aws-prod --output=json
"commit_url": "https://github.com/cyber-dojo/web/commit/97ebee56e01ca3af95bfcae0c7c328eee8c56865",
"instance_count": 3
},
{
"fingerprint": "a523828dc47cd4f31aecf2d5ef1dea569944a1abcd214e4b2cda50676b2c4dc8",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:6ff6b4c@sha256:a523828dc47cd4f31aecf2d5ef1dea569944a1abcd214e4b2cda50676b2c4dc8",
"most_recent_timestamp": 1783075863,
"flow": "creator-ci",
"commit_url": "https://github.com/cyber-dojo/creator/commit/6ff6b4c71ab218d39065654bef32839b9226d21f",
"instance_count": 1
},
{
"fingerprint": "a89642efb4e686ea38d597e20c2c3f256649d8bca02e2d923767844a6897667c",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/languages-start-points:04e0e14@sha256:a89642efb4e686ea38d597e20c2c3f256649d8bca02e2d923767844a6897667c",
Expand All @@ -185,6 +234,12 @@ kosli diff snapshots aws-beta aws-prod --output=json
"instance_count": 1
}
]
},
"changed": {
"artifacts": []
},
"not-changed": {
"artifacts": []
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions client_reference/kosli_get_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ kosli get environment aws-prod --output=json
"name": "aws-prod",
"type": "ECS",
"description": "The ECS cluster for production cyber-dojo",
"last_modified_at": 1783528258.5511878,
"last_reported_at": 1783528258.5511878,
"last_changed_at": 1783486618.5418699,
"last_modified_at": 1783614058.5372138,
"last_reported_at": 1783614058.5372138,
"last_changed_at": 1783576438.7264173,
"state": true,
"include_scaling": false,
"tags": {
Expand Down
2 changes: 1 addition & 1 deletion client_reference/kosli_get_flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ kosli get flow dashboard-ci --output=json
"description": "UX for a group practice dashboard",
"visibility": "private",
"org": "cyber-dojo",
"template": "version: 1\n\ntrail:\n attestations:\n - name: pull-request\n type: pull_request\n artifacts:\n - name: dashboard\n attestations:\n - name: provenance\n type: decision\n\n - name: sbom\n type: decision\n\n - name: snyk-container-scan\n type: decision\n\n - name: rubocop-lint\n type: junit\n - name: sonarcloud-scan\n type: sonar\n - name: unit-test\n type: junit\n - name: unit-test-coverage\n type: generic\n",
"template": "version: 1\n\ntrail:\n attestations:\n - name: pull-request\n type: pull_request\n artifacts:\n - name: dashboard\n attestations:\n - name: provenance-facts\n type: custom:provenance-facts\n - name: provenance-decision\n type: decision\n\n - name: sbom-facts\n type: custom:sbom-facts\n - name: sbom-decision\n type: decision\n\n - name: snyk-container-scan\n type: decision\n\n - name: rubocop-lint\n type: junit\n - name: sonarcloud-scan\n type: sonar\n - name: unit-test\n type: junit\n - name: unit-test-coverage\n type: generic\n",
"repo_url": "https://github.com/cyber-dojo/dashboard",
"tags": {
"ci": "github",
Expand Down
Loading