|
1 | | -name: Windows signing candidates |
| 1 | +name: Windows backport validation |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [shailendra-nv/windows-security-backports] |
| 5 | + branches: [shailendra-nv/windows-security-handoff] |
| 6 | + paths: ['.github/workflows/windows-packages.yml'] |
6 | 7 | workflow_dispatch: |
7 | 8 |
|
8 | 9 | permissions: |
9 | 10 | contents: read |
10 | 11 |
|
11 | 12 | env: |
12 | | - SOURCE_SHA: ${{ github.sha }} |
| 13 | + SOURCE_SHA: 76873620f6630c85f4eeb927e52426fc1823bebb |
13 | 14 | SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OPENSHELL: 0.1.8 |
14 | 15 |
|
15 | 16 | jobs: |
|
82 | 83 | retention-days: 30 |
83 | 84 |
|
84 | 85 | sdk: |
85 | | - name: Build matching SDKs |
| 86 | + name: Validate matching SDKs |
86 | 87 | runs-on: ubuntu-latest |
87 | 88 | timeout-minutes: 30 |
88 | 89 | steps: |
|
94 | 95 | with: |
95 | 96 | install: false |
96 | 97 | experimental: true |
97 | | - - name: Build SDKs using repository tasks |
| 98 | + - name: Run SDK regression checks |
98 | 99 | run: | |
99 | 100 | mise install --locked python uv node |
100 | | - mise run --skip-tools build:python:wheel |
101 | 101 | mise run --skip-tools sdk:ts:ci |
102 | | - mkdir sdk-artifacts |
103 | | - cp target/wheels/openshell-0.1.8-py3-none-any.whl sdk-artifacts/ |
104 | | - cd sdk/typescript |
105 | | - npm version 0.1.8 --no-git-tag-version --ignore-scripts |
106 | | - npm pack --ignore-scripts --pack-destination ../../sdk-artifacts |
107 | | - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 |
108 | | - with: |
109 | | - name: sdk |
110 | | - path: sdk-artifacts/ |
111 | | - if-no-files-found: error |
112 | | - retention-days: 30 |
113 | | - |
114 | | - package: |
115 | | - name: Package and attest |
116 | | - needs: [native, sdk] |
117 | | - runs-on: ubuntu-latest |
118 | | - timeout-minutes: 20 |
119 | | - permissions: |
120 | | - contents: read |
121 | | - id-token: write |
122 | | - attestations: write |
123 | | - artifact-metadata: write |
124 | | - steps: |
125 | | - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
126 | | - with: |
127 | | - path: automation |
128 | | - persist-credentials: false |
129 | | - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
130 | | - with: |
131 | | - ref: ${{ env.SOURCE_SHA }} |
132 | | - path: source |
133 | | - persist-credentials: false |
134 | | - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
135 | | - with: |
136 | | - path: inputs |
137 | | - - uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0 |
138 | | - with: |
139 | | - install: false |
140 | | - - name: Assemble and audit packages |
141 | | - run: | |
142 | | - cd source |
143 | | - mise install --locked uv python github:anchore/syft |
144 | | - mise exec uv python github:anchore/syft -- mise run --skip-tools sbom |
145 | | - mise exec uv python -- uv run --no-project python ../automation/packaging/windows/package.py |
146 | | - - name: Attest candidate ZIP provenance |
147 | | - id: attest |
148 | | - uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2 |
149 | | - with: |
150 | | - subject-path: dist/*.zip |
151 | | - push-to-registry: false |
152 | | - create-storage-record: false |
153 | | - - name: Save verification bundle |
154 | | - run: cp "$BUNDLE_PATH" dist/github-attestation.sigstore.json |
155 | | - env: |
156 | | - BUNDLE_PATH: ${{ steps.attest.outputs.bundle-path }} |
157 | | - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 |
158 | | - with: |
159 | | - name: OpenShell-Windows-0.1.8-signing-candidates |
160 | | - path: dist/ |
161 | | - if-no-files-found: error |
162 | | - retention-days: 30 |
| 102 | + mise run --skip-tools test:python |
0 commit comments