Skip to content

actions/download-artifact false positives for GitHub Enterprise Server #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
martincostello opened this issue Jan 30, 2025 · 4 comments · May be fixed by #510
Open

actions/download-artifact false positives for GitHub Enterprise Server #509

martincostello opened this issue Jan 30, 2025 · 4 comments · May be fixed by #510
Labels
bug Something isn't working

Comments

@martincostello
Copy link
Contributor

Follow-up to #468.

In a GitHub Enterprise Server (GHES) environment where GitHub Connect is not enabled (i.e. actions are shipped-in box with the appliance, and not downloaded from GitHub.com) the actions/upload-artifact@v3-node20 and actions/download-artifact@v3-node20 branches/tags/references do not exist in the actions repositories that ship with the appliance.

Accordingly, it is not possible to use actionlint v1.7.4+ in GHES as it is impossible to upgrade from v3 to v4 as it is not supported. I assume GHES doesn't enforce the Node.js v16 restriction internally in GHES environments as they are still functional.

My suggestion for a fix would be to not issue these warnings if the GITHUB_SERVER_URL environment variable is not https://github.com and does not end with .ghe.com (for GitHub Enterprise Cloud) (docs).

@rhysd
Copy link
Owner

rhysd commented Feb 4, 2025

Thanks for the heads up. However actions/download-artifact@v3 is using node16 runner and the runner is already dead. How does GHES use the action? Is node16 still available on GHES server?

@rhysd rhysd added the bug Something isn't working label Feb 4, 2025
@martincostello
Copy link
Contributor Author

It must still be supported somehow, whether still installed or some internal "treat node16 as node20". GHES only supports custom runners (not hosted), and we base those on the actions-runner image.

The important point is that regardless of how they work in GHES, v3 artifacts actions do and v4 don't 😄

By coincidence I happen to be having a go at trying to resolve this now. I'm not a Go developer though so it might not be the best way to do it. I'll push up a draft soon for feedback.

martincostello added a commit to martincostello/actionlint that referenced this issue Feb 4, 2025
Attempt to resolve false positives for v4 artifacts actions in GitHub Enterprise Server.

Contributes to rhysd#509.
@martincostello martincostello linked a pull request Feb 4, 2025 that will close this issue
@martincostello
Copy link
Contributor Author

I'll push up a draft soon for feedback.

#510

@codezninja
Copy link

Would love to see if we can get this fixed. Cause right now our super-linting jobs fail on this but we can't update artifact actions from v3 -> v4. So we've had to turn actionlint off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants