Skip to content

fix: skip outdated action warnings on GitHub Enterprise Server#662

Open
leno23 wants to merge 1 commit into
rhysd:mainfrom
leno23:fix/skip-outdated-actions-on-ghes-509
Open

fix: skip outdated action warnings on GitHub Enterprise Server#662
leno23 wants to merge 1 commit into
rhysd:mainfrom
leno23:fix/skip-outdated-actions-on-ghes-509

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Fixes #509.

On GitHub Enterprise Server without GitHub Connect, actions/upload-artifact@v3 and actions/download-artifact@v3 may remain the only available versions while v3-node20 and v4 refs are not shipped. actionlint v1.7.4+ flags v3 as outdated and suggests upgrades that are not possible on those appliances.

This change skips the outdated popular action check when GITHUB_SERVER_URL is set to a host other than github.com or *.ghe.com (GitHub Enterprise Cloud). Checks continue to run on github.com, GHEC, and when the variable is unset (local lint default).

Test plan

  • go test ./...
  • TestIsGitHubHostedPlatform for URL cases
  • TestOutdatedActionsSkippedOnGHES / TestOutdatedActionsReportedOnGitHubCom
  • testdata/ok/ghes/artifact-v3.yaml passes with a GHES-style GITHUB_SERVER_URL

Outdated popular action warnings assume github.com or GHEC where newer
action versions exist. GHES appliances without GitHub Connect may only ship
actions/upload-artifact@v3 and cannot use v3-node20 or v4 (rhysd#509).

Honor GITHUB_SERVER_URL: keep checks on github.com and *.ghe.com, skip on
other hosts.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

actions/download-artifact false positives for GitHub Enterprise Server

1 participant