Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 27, 2025

Bumps actions/upload-artifact from 4.6.2 to 5.0.0.

Release notes

Sourced from actions/upload-artifact's releases.

v5.0.0

What's Changed

BREAKING CHANGE: this update supports Node v24.x. This is not a breaking change per-se but we're treating it as such.

New Contributors

Full Changelog: actions/upload-artifact@v4...v5.0.0

Commits
  • 330a01c Merge pull request #734 from actions/danwkennedy/prepare-5.0.0
  • 03f2824 Update github.dep.yml
  • 905a1ec Prepare v5.0.0
  • 2d9f9cd Merge pull request #725 from patrikpolyak/patch-1
  • 9687587 Merge branch 'main' into patch-1
  • 2848b2c Merge pull request #727 from danwkennedy/patch-1
  • 9b51177 Spell out the first use of GHES
  • cd231ca Update GHES guidance to include reference to Node 20 version
  • de65e23 Merge pull request #712 from actions/nebuk89-patch-1
  • 8747d8c Update README.md
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.2 to 5.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@ea165f8...330a01c)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added Dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Oct 27, 2025
@dependabot dependabot bot added Dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Oct 27, 2025
Comment on lines 209 to 215

- name: Upload build logs
if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: ${{ matrix.rid }}-build-logs
path: |
Copy link

Choose a reason for hiding this comment

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

Bug: actions/[email protected] requires unique artifact names across jobs. name: ${{ github.sha }} in a matrix job is not unique and will fail if multiple jobs attempt to upload.
Severity: HIGH | Confidence: 0.95

🔍 Detailed Analysis

The actions/[email protected] action requires artifact names to be unique across all jobs in a workflow run. In .github/workflows/build.yml, the "Archive NuGet Packages" step at line 240 uses name: ${{ github.sha }} for its artifact. Since github.sha is constant across matrix iterations, multiple matrix jobs would attempt to upload to the same artifact name if the if: runner.os == 'macOS' condition were not present or changed. This would cause the workflow step to fail, as v5.0.0 errors when attempting to create an artifact with a name already in use.

💡 Suggested Fix

Modify the artifact name at .github/workflows/build.yml:240 to include a unique identifier per matrix job, such as name: ${{ github.sha }}-${{ matrix.rid }}.

🤖 Prompt for AI Agent
Fix this bug. In .github/workflows/build.yml at lines 209-215: The
`actions/[email protected]` action requires artifact names to be unique across all
jobs in a workflow run. In `.github/workflows/build.yml`, the "Archive NuGet Packages"
step at line 240 uses `name: ${{ github.sha }}` for its artifact. Since `github.sha` is
constant across matrix iterations, multiple matrix jobs would attempt to upload to the
same artifact name if the `if: runner.os == 'macOS'` condition were not present or
changed. This would cause the workflow step to fail, as v5.0.0 errors when attempting to
create an artifact with a name already in use.

Did we get this right? 👍 / 👎 to inform future reviews.

@jamescrosswell jamescrosswell merged commit 10dbbae into main Oct 27, 2025
30 checks passed
@jamescrosswell jamescrosswell deleted the dependabot/github_actions/actions/upload-artifact-5.0.0 branch October 27, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants