Skip to content

Commit 59ad0ec

Browse files
committed
ci(windows): attest signed release package checksums
Signed-off-by: Shailendra Singh <shailendras@nvidia.com>
1 parent f258c85 commit 59ad0ec

5 files changed

Lines changed: 648 additions & 16 deletions

File tree

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,82 @@
1-
name: Windows validated signing handoff
1+
name: Windows signed package attestations
22

33
on:
44
push:
55
branches: [shailendra-nv/windows-security-handoff]
6-
paths: ['.github/workflows/windows-signing-handoff.yml', 'signing-handoff/**']
6+
paths: ['.github/workflows/windows-signing-handoff.yml', 'signing-handoff/signed-release/**']
77
workflow_dispatch:
88

99
permissions:
1010
contents: read
1111
actions: read
12-
attestations: read
1312

1413
jobs:
15-
handoff:
14+
attest:
1615
if: github.repository == 'NVIDIA/OpenShell'
1716
runs-on: ubuntu-latest
1817
timeout-minutes: 15
18+
permissions:
19+
contents: read
20+
actions: read
21+
id-token: write
22+
attestations: write
23+
artifact-metadata: write
1924
steps:
2025
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2126
with:
2227
persist-credentials: false
28+
sparse-checkout: signing-handoff/signed-release
2329
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
2430
with:
2531
name: OpenShell-Windows-0.1.8-signing-candidates
26-
run-id: 43545453103
32+
run-id: 43743849384
2733
github-token: ${{ github.token }}
28-
path: handoff
29-
- name: Verify original GitHub-built ZIP attestations
34+
path: candidates
35+
- name: Verify original GitHub build provenance
3036
env:
3137
GH_TOKEN: ${{ github.token }}
3238
run: |
3339
for arch in arm64 x64; do
34-
gh attestation verify "handoff/OpenShell-Windows-0.1.8-$arch-unsigned-candidate.zip" \
40+
gh attestation verify "candidates/OpenShell-Windows-0.1.8-$arch-unsigned-candidate.zip" \
3541
--repo NVIDIA/OpenShell \
3642
--signer-workflow NVIDIA/OpenShell/.github/workflows/windows-packages.yml \
37-
--signer-digest 1c2521b7e839ffeb1ae0f37a77f5b9a700d3a536 \
43+
--signer-digest f258c85b202a78e0b233f39cc8f991069ef509ab \
3844
--deny-self-hosted-runners \
39-
--bundle handoff/github-attestation.sigstore.json
45+
--bundle candidates/github-attestation.sigstore.json
4046
done
4147
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
4248
with:
4349
install: false
44-
experimental: true
45-
- name: Bind external validation report and stage signing inputs
50+
- name: Install validation tools
51+
run: mise install uv@0.10.12 python@3.14.5
52+
- name: Verify external signing and validation records
53+
run: mise exec uv@0.10.12 python@3.14.5 -- uv run --no-project python signing-handoff/signed-release/verify-record.py
54+
- name: Attest final signed archive checksums
55+
id: attest
56+
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
57+
with:
58+
subject-checksums: signing-handoff/signed-release/OpenShell-Windows-0.1.8-SHA256SUMS
59+
predicate-type: https://nvidia.com/openshell/attestations/windows-signed-package/v1
60+
predicate-path: signing-handoff/signed-release/signed-package-predicate.json
61+
push-to-registry: false
62+
create-storage-record: false
63+
- name: Assemble verification artifact
64+
env:
65+
BUNDLE_PATH: ${{ steps.attest.outputs.bundle-path }}
4666
run: |
47-
mise install --locked uv python
48-
mise exec uv python -- uv run --no-project python signing-handoff/assemble.py
67+
mkdir verification
68+
cp signing-handoff/signed-release/OpenShell-Windows-0.1.8-SHA256SUMS verification/
69+
cp signing-handoff/signed-release/OpenShell-Windows-0.1.8-validation.json verification/
70+
mise exec uv@0.10.12 python@3.14.5 -- uv run --no-project python - <<'PY'
71+
import json, os
72+
from pathlib import Path
73+
bundles = [Path('candidates/github-attestation.sigstore.json'), Path(os.environ['BUNDLE_PATH'])]
74+
result = '\n'.join(json.dumps(json.loads(p.read_text()), separators=(',', ':')) for p in bundles)
75+
Path('verification/OpenShell-Windows-0.1.8-attestations.jsonl').write_text(result + '\n')
76+
PY
4977
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
5078
with:
51-
name: OpenShell-Windows-0.1.8-validated-signing-handoff
52-
path: handoff/
79+
name: OpenShell-Windows-0.1.8-signed-package-verification
80+
path: verification/
5381
if-no-files-found: error
5482
retention-days: 30
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
63c3aeb9b19f2cfeadfe9943629d7c53b783f34b3c735811dba21801eb0f275a OpenShell-Windows-0.1.8-arm64.zip
2+
9727eda6b5e77034678021ed3a4b69cc804ba25f832df322c6ae10774db37a50 OpenShell-Windows-0.1.8-validation.json
3+
db8d321668208961dd35651af4a98d7885893151921cb98dfa2b3eded2d2117b OpenShell-Windows-0.1.8-x64.zip
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"schemaVersion": 1,
3+
"source": {
4+
"repository": "https://github.com/NVIDIA/OpenShell",
5+
"branch": "windows",
6+
"commit": "e39791be4f47ed6fb6357885ef42ca1339320679",
7+
"versionStamp": "0.1.8"
8+
},
9+
"intendedRelease": {
10+
"repository": "NVIDIA/OpenShell",
11+
"tag": "v0.1.8",
12+
"matchesReleaseTagSource": false
13+
},
14+
"buildRun": "https://github.com/NVIDIA/OpenShell/actions/runs/43743849384",
15+
"buildAutomationCommit": "f258c85b202a78e0b233f39cc8f991069ef509ab",
16+
"nativeRunnerTests": {
17+
"arm64": {
18+
"passed": 6659,
19+
"failed": 0,
20+
"skipped": 43
21+
},
22+
"x64": {
23+
"passed": 6659,
24+
"failed": 0,
25+
"skipped": 43
26+
}
27+
},
28+
"sdkRunnerTests": {
29+
"pythonPassed": 229,
30+
"typescriptPassed": 196
31+
},
32+
"architectures": {
33+
"arm64": {
34+
"file": "OpenShell-Windows-0.1.8-arm64.zip",
35+
"sha256": "63c3aeb9b19f2cfeadfe9943629d7c53b783f34b3c735811dba21801eb0f275a",
36+
"size": 55495163,
37+
"authenticode": {
38+
"result": "valid-timestamped",
39+
"verifiedFiles": 23,
40+
"publisher": "NVIDIA Corporation"
41+
},
42+
"manifestIntegrity": "passed",
43+
"executableLaunches": "passed",
44+
"launchEnvironment": "native-arm64",
45+
"nativeMxcRuntime": {
46+
"passed": 7,
47+
"failed": 0,
48+
"skipped": 0
49+
},
50+
"injectedCaHttps": {
51+
"passed": 1,
52+
"failed": 0,
53+
"skipped": 0
54+
},
55+
"signedPayloadHashesUnchangedAfterTests": true
56+
},
57+
"x64": {
58+
"file": "OpenShell-Windows-0.1.8-x64.zip",
59+
"sha256": "db8d321668208961dd35651af4a98d7885893151921cb98dfa2b3eded2d2117b",
60+
"size": 59953037,
61+
"authenticode": {
62+
"result": "valid-timestamped",
63+
"verifiedFiles": 23,
64+
"publisher": "NVIDIA Corporation"
65+
},
66+
"manifestIntegrity": "passed",
67+
"executableLaunches": "passed",
68+
"launchEnvironment": "x64-emulation-on-arm64",
69+
"nativeMxcRuntime": "unqualified-not-tested",
70+
"injectedCaHttps": "not-tested",
71+
"signedPayloadHashesUnchangedAfterTests": true
72+
}
73+
},
74+
"arm64PackageExamples": {
75+
"gatewayStartAndInfo": "passed",
76+
"initialization": "passed",
77+
"typescriptHarness": "passed",
78+
"powershellHarness": "passed",
79+
"pythonHealth": "blocked-native-dependency-installation"
80+
},
81+
"signingVerification": {
82+
"signatureVerification": "Windows Authenticode and signtool /pa /all /v",
83+
"uniqueSignedPayloads": 28,
84+
"payloadIdentityPreserved": true,
85+
"signedFilesPerPackage": 23,
86+
"unsignedSourceExampleTypesCoveredByArchiveAttestation": [
87+
".py",
88+
".mjs"
89+
]
90+
},
91+
"privacyScan": "passed",
92+
"limitations": [
93+
"Native x64 MXC remains unqualified; x64 signed-package launches were tested under emulation.",
94+
"Passing MXC scenarios does not establish exclusive network mediation or live revocation.",
95+
"Windows cfg-gated tests and unsupported-package exclusions are outside the Nextest skipped count.",
96+
"The source SBOM covers the broader source tree and is not an exact linked-binary inventory.",
97+
"Native ARM64 Python health example remains unqualified because its binary dependencies could not be installed."
98+
]
99+
}

0 commit comments

Comments
 (0)