Skip to content

[All OSs] Fix SBOM release asset upload and duplicate scan runs - #14637

Open
v-dunjadenic wants to merge 2 commits into
actions:mainfrom
v-dunjadenic:fix-sbom-step-in-deployment-workflows
Open

v-dunjadenic wants to merge 2 commits into
actions:mainfrom
v-dunjadenic:fix-sbom-step-in-deployment-workflows

Conversation

@v-dunjadenic

@v-dunjadenic v-dunjadenic commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Description

  • Replace actions/upload-release-asset@v1 with gh release upload --clobber.
  • Bump actions/upload-artifact from v4 to v6.
  • Add a concurrency group keyed on the release ID.
  • Include the dispatch id in run-name.

Reasoning:

When more than one run is dispatched for the same release, both scan concurrently and the second upload fails with a bare Validation Failed. That is all the archived action reports. It drops the API error details, so the actual cause (already_exists) never appears in the log.

--clobber makes the upload idempotent, and the concurrency group stops a second run from repeating a multi-hour scan that has already been done. The archived action was last updated in 2021, targets Node 20, and uses the deprecated set-output.

actions/upload-artifact@v4 was named in the same Node 20 deprecation warning. v6 is the first major to run on Node 24; its inputs are unchanged from v4, and it requires runner 2.327.1 or newer, which these runners already exceed.

Related issue:

Tracked privately

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

Copilot AI lite review requested due to automatic review settings August 26, 2026 13:37
@v-dunjadenic
v-dunjadenic marked this pull request as draft August 26, 2026 13:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the SBOM-generation workflow to make release-asset uploads idempotent and to avoid duplicate, concurrent SBOM scans for the same release.

Changes:

  • Switches release asset upload from actions/upload-release-asset@v1 to gh release upload --clobber.
  • Adds workflow-level concurrency keyed by release ID to serialize SBOM runs per release.
  • Extends the workflow run-name to include the dispatch ID for easier run correlation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@v-dunjadenic v-dunjadenic self-assigned this Aug 26, 2026
@v-dunjadenic
v-dunjadenic marked this pull request as ready for review August 26, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants