Skip to content

feat: update deprecated GitHub Actions to v4 in CI - #71

Merged
hsluoyz merged 2 commits into
masterfrom
copilot/fix-ci-error-deprecation
Dec 5, 2025
Merged

feat: update deprecated GitHub Actions to v4 in CI#71
hsluoyz merged 2 commits into
masterfrom
copilot/fix-ci-error-deprecation

Conversation

Copilot AI commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

CI failing due to deprecated actions/upload-artifact@v3 which GitHub now auto-fails.

Changes

Updated all workflow files to use current action versions:

  • actions/upload-artifact: v1.0.0/v3 → v4
  • actions/checkout: v2 → v4
  • actions/setup-dotnet: v1 → v4
  • github/codeql-action/*: v2 → v3

Affected workflows: build.yml, release.yml, codeql-analysis.yml

Original prompt

This section details on the original issue you should resolve

<issue_title>[bug] fix CI error</issue_title>
<issue_description>See: https://github.com/casbin-net/casbin-aspnetcore/actions/runs/19890175432/job/57006793810?pr=69

0s
Current runner version: '2.329.0'
Runner Image Provisioner
Operating System
Runner Image
GITHUB_TOKEN Permissions
Secret source: None
Prepare workflow directory
Prepare all required actions
Getting action download info
Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
<comment_new><author>@hsluoyz</author><body>
 @sagilio @sociometry @AsakusaRinne</body></comment_new>
</comments>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@hsluoyz
hsluoyz requested a review from sagilio December 5, 2025 14:27
@hsluoyz

hsluoyz commented Dec 5, 2025

Copy link
Copy Markdown
Member

@sagilio please review

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hsluoyz
hsluoyz marked this pull request as ready for review December 5, 2025 14:27
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI error caused by deprecated upload-artifact action Fix CI error: Update deprecated GitHub Actions to v4 Dec 5, 2025
Copilot AI requested a review from hsluoyz December 5, 2025 14:33
@hsluoyz hsluoyz changed the title Fix CI error: Update deprecated GitHub Actions to v4 feat: update deprecated GitHub Actions to v4 in CI Dec 5, 2025
@hsluoyz
hsluoyz merged commit 0572b2a into master Dec 5, 2025
13 of 17 checks passed
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.

[bug] fix CI error

3 participants