Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 6, 2025

This PR addresses the issue with deprecated GitHub Actions in the build and Docker workflows by updating all actions to their latest supported versions.

Changes Made

Build Workflow (.github/workflows/build.yml)

  • Fixed the main issue: Updated actions/upload-artifact@v2 to @v4 (v2 is deprecated and no longer supported)
  • Updated actions/checkout@v3 to @v4 for the latest security updates and features
  • Updated actions/setup-dotnet@v3 to @v4 for improved .NET setup capabilities

Docker Workflow (.github/workflows/docker.yml)

  • Updated docker/setup-buildx-action@v2 to @v3 for enhanced Docker Buildx functionality
  • Simplified docker/login-action@v3.0.0 to @v3 (removing specific patch version)
  • Updated docker/build-push-action@v5.1.0 to @v6 for the latest Docker build features

Testing

  • ✅ Validated YAML syntax for both workflow files
  • ✅ Verified that the .NET project builds successfully (dotnet restore and dotnet build both pass)
  • ✅ All action version updates are backwards compatible with existing workflow parameters

Impact

These updates ensure that the CI/CD workflows will continue to function properly and take advantage of the latest features, security improvements, and bug fixes provided by the updated actions. The deprecated actions/upload-artifact@v2 was the primary concern as it could potentially stop working in the future.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: Loupeznik <43666286+Loupeznik@users.noreply.github.com>
Copilot AI changed the title [WIP] the build workflow is currently using actions/upload-artifact:v2 which is deprecated. Update the workflow to use a supported version. Also check the other actions in this workflow for updated versions. If there are any, update those actions as well. Update deprecated GitHub Actions to latest supported versions Sep 6, 2025
Copilot AI requested a review from Loupeznik September 6, 2025 09:26
@Loupeznik Loupeznik marked this pull request as ready for review September 6, 2025 09:34
@Loupeznik Loupeznik merged commit 2db6114 into master Sep 6, 2025
2 checks passed
@Loupeznik Loupeznik deleted the copilot/fix-7fcce223-6466-46eb-983b-af4b4cfd70e4 branch September 6, 2025 09:34
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