Skip to content

Commit 2481c6a

Browse files
OgeonX-AiAitomates
andauthored
ci: harden workflows and preserve diagnostics (#9)
* ci: harden workflow permissions and timeouts * test(contracts): sync immutable registry release * fix(foundry): preserve workflow failure causes * fix(api): preserve workflow failure chaining * fix(security): sanitize provider span failures --------- Co-authored-by: Kim Harjamäki <kim.harjamaki@prosimo.fi>
1 parent c247f64 commit 2481c6a

13 files changed

Lines changed: 40 additions & 28 deletions

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77

88
permissions:
99
contents: read
10-
packages: write
1110

1211
jobs:
1312
validate:
1413
runs-on: ubuntu-latest
14+
timeout-minutes: 15
1515
steps:
1616
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1717
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
@@ -30,6 +30,10 @@ jobs:
3030

3131
docker:
3232
runs-on: ubuntu-latest
33+
timeout-minutes: 20
34+
permissions:
35+
contents: read
36+
packages: write
3337
needs: validate
3438
steps:
3539
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
analyze:
99
name: Analyze
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 30
1112
permissions:
1213
actions: read
1314
contents: read

.github/workflows/pages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ on:
66
- master
77
permissions:
88
contents: read
9-
pages: write
10-
id-token: write
119
concurrency:
1210
group: "pages"
1311
cancel-in-progress: false
1412
jobs:
1513
build:
1614
runs-on: ubuntu-latest
15+
timeout-minutes: 15
1716
steps:
1817
- uses: actions/checkout@v4
1918
- uses: actions/setup-python@v5
@@ -25,10 +24,14 @@ jobs:
2524
with:
2625
path: ./site
2726
deploy:
27+
permissions:
28+
pages: write
29+
id-token: write
2830
environment:
2931
name: github-pages
3032
url: ${{ steps.deployment.outputs.page_url }}
3133
runs-on: ubuntu-latest
34+
timeout-minutes: 10
3235
needs: build
3336
steps:
3437
- name: Deploy to GitHub Pages

tests/contracts/cas-contracts/v0.1.0/artifact-manifest.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://schemas.coding-autopilot.dev/v0.1/artifact-manifest.schema.json",
3+
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/artifact-manifest.schema.json",
44
"title": "ArtifactManifest",
55
"type": "object",
66
"allOf": [

tests/contracts/cas-contracts/v0.1.0/common.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://schemas.coding-autopilot.dev/v0.1/common.schema.json",
3+
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/common.schema.json",
44
"title": "CAS Common Definitions",
55
"$defs": {
66
"actor": {

tests/contracts/cas-contracts/v0.1.0/evaluation-result.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://schemas.coding-autopilot.dev/v0.1/evaluation-result.schema.json",
3+
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/evaluation-result.schema.json",
44
"title": "EvaluationResult",
55
"type": "object",
66
"allOf": [

tests/contracts/cas-contracts/v0.1.0/manifest.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,44 @@
22
"version": "0.1.0",
33
"schemas": [
44
{
5-
"id": "https://schemas.coding-autopilot.dev/v0.1/artifact-manifest.schema.json",
5+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/artifact-manifest.schema.json",
66
"path": "artifact-manifest.schema.json",
7-
"sha256": "6c2192fb6ca79843361695f3dccd5ebf1dda8ce320c974db2630b0a2b78705bd"
7+
"sha256": "6a18c8f2f279b3ef10f7705ba4e9f39b46ba5a2b2ef0d7072ce7225f06f12ea7"
88
},
99
{
10-
"id": "https://schemas.coding-autopilot.dev/v0.1/common.schema.json",
10+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/common.schema.json",
1111
"path": "common.schema.json",
12-
"sha256": "c7ce72a6f5da8394e48f2421820588a8142546962e05152997bd1e6ced994928"
12+
"sha256": "6c86075df043ec924f6b7aa004c6a694916a6c3d7a822dda4235f1ee8368f92a"
1313
},
1414
{
15-
"id": "https://schemas.coding-autopilot.dev/v0.1/evaluation-result.schema.json",
15+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/evaluation-result.schema.json",
1616
"path": "evaluation-result.schema.json",
17-
"sha256": "12e8019f858dc0cda80ac8994ca1251a9a229a8642b05706227bd9c995c5799a"
17+
"sha256": "34ff39414099d16d9aed32e416a0c6538e7738c93df01e5fb0940e042b5904d7"
1818
},
1919
{
20-
"id": "https://schemas.coding-autopilot.dev/v0.1/policy-decision.schema.json",
20+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/policy-decision.schema.json",
2121
"path": "policy-decision.schema.json",
22-
"sha256": "9cf259d405664560b30b7afd25d08d888337fd9a81a6a388ceeb36cbf7edcc33"
22+
"sha256": "32d29407ae471c153705b238a550fa97e1e6c9ac064a5291d5164cc3de369e5a"
2323
},
2424
{
25-
"id": "https://schemas.coding-autopilot.dev/v0.1/prompt-envelope.schema.json",
25+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/prompt-envelope.schema.json",
2626
"path": "prompt-envelope.schema.json",
27-
"sha256": "58a991862031f40c2ffcc073743776d05206684534fac2c20c67c274fbf05c84"
27+
"sha256": "3d41fcde3223f208e9c268d88474979de6f315ca7fc82c98207dfff3e6d83471"
2828
},
2929
{
30-
"id": "https://schemas.coding-autopilot.dev/v0.1/run-event.schema.json",
30+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/run-event.schema.json",
3131
"path": "run-event.schema.json",
32-
"sha256": "1bcaee2ff546439ea81d64d57dcb51cd9f57dd790fe300fd90e251823e27a36f"
32+
"sha256": "d03702b78d431cdb05b81ca5f44c5dc0301619660dcf149ae3024bd1ad8b1e3a"
3333
},
3434
{
35-
"id": "https://schemas.coding-autopilot.dev/v0.1/verification-result.schema.json",
35+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/verification-result.schema.json",
3636
"path": "verification-result.schema.json",
37-
"sha256": "aeff3d41eeb99b3017b460c2a2a8d07b4e1c828830b72853d5f41d93d6abe012"
37+
"sha256": "a66c5b02b7791f4b163c6b2b0dfd476ff60dde67246f3bfcf372f416dc1de253"
3838
},
3939
{
40-
"id": "https://schemas.coding-autopilot.dev/v0.1/work-request.schema.json",
40+
"id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/work-request.schema.json",
4141
"path": "work-request.schema.json",
42-
"sha256": "543e1dd2313cff2a1ebeb1470db3085b89c3933694231eb5b4798096f147e4a7"
42+
"sha256": "e4648cfc04494030b26cc8a1cf79fbe92bb9ad841316e0b920f3a15c997967f3"
4343
}
4444
]
4545
}

tests/contracts/cas-contracts/v0.1.0/policy-decision.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://schemas.coding-autopilot.dev/v0.1/policy-decision.schema.json",
3+
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/policy-decision.schema.json",
44
"title": "PolicyDecision",
55
"type": "object",
66
"allOf": [

tests/contracts/cas-contracts/v0.1.0/prompt-envelope.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://schemas.coding-autopilot.dev/v0.1/prompt-envelope.schema.json",
3+
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/prompt-envelope.schema.json",
44
"title": "PromptEnvelope",
55
"type": "object",
66
"allOf": [

tests/contracts/cas-contracts/v0.1.0/run-event.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://schemas.coding-autopilot.dev/v0.1/run-event.schema.json",
3+
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v0.1/run-event.schema.json",
44
"title": "RunEvent",
55
"type": "object",
66
"allOf": [

0 commit comments

Comments
 (0)