Skip to content
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

Invalid artifact URL with v1.2.9 #235

Open
jcop opened this issue Oct 6, 2023 · 4 comments
Open

Invalid artifact URL with v1.2.9 #235

jcop opened this issue Oct 6, 2023 · 4 comments
Labels
GHES Specific to GitHub Enterprise Server

Comments

@jcop
Copy link

jcop commented Oct 6, 2023

Hi there

I saw that the invalid artifact url fix was backported into v1, however I'm still getting the Invalid artifact url message.

I'm using Github Enterprise Server 3.8.6

Could this be an error on my side, or some particular quirk with the 3.8 version?

Thanks in advance!

Run actions/[email protected]
  with:
    emit_telemetry: false
    token: ***
    timeout: 600000
    error_count: 10
    reporting_interval: 5000
    artifact_name: github-pages
    preview: false
Artifact exchange URL: https://***.com/_services/pipelines/z0Rk2ueWXp3kDK4JaspYI3r0zHdPc48yPbeq5Lx4ZyeInmcFuS/_apis/pipelines/workflows/2827897/artifacts?api-version=6.0-preview


Creating Pages deployment with payload:
{
	"artifact_url": "https://**.com/_services/pipelines/z0Rk2ueWXp3kDK4JaspYI3r0zHdPc48yPbeq5Lx4ZyeInmcFuS/_apis/pipelines/1/runs/22/artifacts?artifactName=github-pages&%24expand=SignedContent",
	"pages_build_version": "6e942b73c5261ea98bb46cd25574c13a306cb367",
	"oidc_token": "***"
}


Error: Creating Pages deployment failed
Error: HttpError: Invalid artifact url
    at /runner/_work/_actions/actions/deploy-pages/v1.2.9/webpack:/deploy-pages/node_modules/@octokit/request/dist-node/index.js:86:1
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at createPagesDeployment (/runner/_work/_actions/actions/deploy-pages/v1.2.9/webpack:/deploy-pages/src/api-client.js:116:1)
    at Deployment.create (/runner/_work/_actions/actions/deploy-pages/v1.2.9/webpack:/deploy-pages/src/deployment.js:59:1)
    at main (/runner/_work/_actions/actions/deploy-pages/v1.2.9/webpack:/deploy-pages/src/index.js:30:1)
Error: Error: Failed to create deployment (status: 400) with build version 6e942b73c5261ea98bb46cd25574c13a306cb367. Responded with: Invalid artifact url
@Anubiso
Copy link

Anubiso commented Oct 18, 2023

We have the same issue. We are using 1.2.9 too, with actions/upload-pages-artifact@v2 running successfully before.

@Anubiso
Copy link

Anubiso commented Nov 15, 2023

Any updates on this? We are still encountering the same issue on GitHub Enterprise Server 3.8.8 with deploy-pages 1.2.9

@JamesMGreene
Copy link
Contributor

JamesMGreene commented Nov 20, 2023

Regarding the issue mentioned:

That was not fixed by any changes to this action. That was a temporary incident caused by an unexpected mismatch between a GitHub Actions subdomain format change being rolled out and the security checks that GitHub Pages was doing to verify the referenced artifact on the server side. That incident would not have affected GHES usage directly.

For this one, you may want to file an issue with Support. 🤔

It's possible that Actions may have backported a similar change without the equivalent Pages fix, though it feels unlikely to me. I'm not too familiar with the Actions/artifacts system configuration on GHES, unfortunately. 😕

@JamesMGreene
Copy link
Contributor

@jcop @Anubiso Actually, question for each of you:

Does your artifact exchange URL's hostname (masked as ***.com in the OP) exactly match your GHES appliance's hostname? e.g. both are exactly github.mycompany.com or whatever

Curious if this an untested case with GHES subdomain isolation enabled or something like that. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GHES Specific to GitHub Enterprise Server
Projects
None yet
Development

No branches or pull requests

3 participants