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

401 Unauthorized /api/v1/signingCert #1022

Closed
mi1wei opened this issue Feb 27, 2023 · 2 comments
Closed

401 Unauthorized /api/v1/signingCert #1022

mi1wei opened this issue Feb 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mi1wei
Copy link

mi1wei commented Feb 27, 2023

Description

when i use enterprise github action, i got failed.
when i use github action, it works righly.

image

image

Version

v2

@znewman01
Copy link
Contributor

When you say "enterprise GitHub action," are you using a self-hosted runner?

If so, this is expected. The Cosign integration in Goreleaser uses ephemeral keys, which use your GitHub credentials to get a signing certificate from Fulcio to sign your release. The public Fulcio instance doesn't (and probably won't) support credentials from self-hosted runners.

If not, we still probably won't be able to do anything here. I found some details: https://docs.github.com/en/enterprise-cloud@latest/rest/actions/oidc?apiVersion=2022-11-28

It looks like you GitHub Actions Enterprise lets you customize the way OIDC issuance works pretty heavily, which means that we won't be able to verify conformance with these requirements: #397

That said, you can always spin up your own Fulcio instance and configure it to accept GHES OIDC tokens. It's a fair bit of work, but hopefully that will change in the longer run.

@haydentherapper
Copy link
Contributor

Closing as working as intended, there isn’t support for enterprise instances of GitHub.

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

No branches or pull requests

3 participants