Skip to content

[BUG][github-action] GitHub Enterprise | Artifact Upload fails #2036

@daveerickson

Description

@daveerickson

Have you tried to resolve this issue yourself first?

  • I confirm I have gone through the above steps and still have an issue to report.

Bug Description

When running forcedotcom/run-code-analyzer@v2 from a GitHub Enterprise server, the process fails when uploading artifacts.

Output / Logs

2026-04-24T13:15:27.8884322Z ##[group]Uploading Results Artifact
2026-04-24T13:15:27.8906222Z ##[warning]Artifact upload failed with error: GHESNotSupportedError: @actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES..

Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.

If the error persists, please check whether Actions is operating normally at https://githubstatus.com.
2026-04-24T13:15:27.8973460Z ##[error]An unexpected error was thrown (see below). First check to make sure you're providing valid inputs. If you can't resolve the error, then create an issue at https://github.com/forcedotcom/run-code-analyzer/issues.

GHESNotSupportedError: @actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES.
at DefaultArtifactClient. (/var/lib/github/work/_actions/forcedotcom/run-code-analyzer/v2/dist/index.js:1921:27)
at Generator.next ()
at /var/lib/github/work/_actions/forcedotcom/run-code-analyzer/v2/dist/index.js:1889:71
at new Promise ()
at webpack_modules.64487.__awaiter (/var/lib/github/work/_actions/forcedotcom/run-code-analyzer/v2/dist/index.js:1885:12)
at DefaultArtifactClient.uploadArtifact (/var/lib/github/work/_actions/forcedotcom/run-code-analyzer/v2/dist/index.js:1918:16)
at RuntimeDependencies.uploadArtifact (/var/lib/github/work/_actions/forcedotcom/run-code-analyzer/v2/dist/index.js:79622:35)
at run (/var/lib/github/work/_actions/forcedotcom/run-code-analyzer/v2/dist/index.js:79697:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Steps To Reproduce

We are configured to run Code Analyzer on our PR's. This error happens when the action runs.

Expected Behavior

We expected the job to successfully run and upload artifacts.

Operating System

Windows 11

Salesforce CLI Version

@salesforce/cli/2.131.7 win32-x64 node-v22.22.0

Code Analyzer Plugin ("code-analyzer") Version

code-analyzer 5.11.1

Node Version

No response

Java Version

No response

Python Version

No response

Additional Context (Screenshots, Files, etc)

No response

Workaround

https://github.com/actions/upload-artifact#ghes-support
It appears using version 3 of upload-artifact would support GitHub Enterprise servers.

Urgency

Moderate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions