Skip to content

Commit e6e8f89

Browse files
fix(ci): repair publish and SBOM workflow failures
- publish.yml: add fail-fast: false so all PyPI packages publish even if one fails - publish.yml: guard NuGet publish with secret check + quote API key - sbom.yml: fix attest-sbom v2 inputs (sbom-path instead of sbom-format) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f058338 commit e6e8f89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
environment: pypi
3131
strategy:
32+
fail-fast: false
3233
matrix:
3334
package: [agent-os, agent-mesh, agent-hypervisor, agent-sre, agent-compliance]
3435
steps:
@@ -88,5 +89,6 @@ jobs:
8889
subject-path: packages/agent-governance-dotnet/nupkg/*.nupkg
8990

9091
- name: Publish to NuGet
92+
if: ${{ secrets.NUGET_API_KEY != '' }}
9193
working-directory: packages/agent-governance-dotnet
92-
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
94+
run: dotnet nuget push ./nupkg/*.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate

.github/workflows/sbom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/attest-sbom@115c3be05ff3974bcbd596578934b3f9ce39bf68 # v2.2.0
4444
with:
4545
subject-path: sbom.spdx.json
46-
sbom-format: spdx+json
46+
sbom-path: sbom.spdx.json
4747

4848
- name: Upload SBOMs to release
4949
if: github.event_name == 'release'

0 commit comments

Comments
 (0)