-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unable to upload a release artifact as part of a release action on a private github repo #468
Comments
For context - the workflow
We first observed this on 21/05/2024 and it worked sucesfully a week earlier. |
Hi @chris-j-major -- it looks like this is failing to attach a release asset rather than a workflow artifact, is that accurate? There was just recently a change (prompted from this issue) published which is almost assuredly responsible for this, but I'm trying to figure out exactly why. I just tested this again on my test repo, and set the permissions as you've described since they were missing. But this worked as expected to both a) attach workflow artifacts and b) attach release assets. Is there a public repo that I could look at your complete workflow? Alternately, is there some minimal workflow that reproduces this issue? |
I should also note in a Github actions toolkit readme it mentions the |
Thanks for the quick replies. You're entirly correct that the faliure is a I've created a minimal test case, and interestingly it worked properly as a public repo, but failed if it was private to the organisation. Hopefully you should be able to see it at https://github.com/cosimmetry/release-testing/actions (I've now made it public again). The two releases are both from the same commit - AFAIK the only difference is the repo's visibility in github. |
Hi @chris-j-major -- thanks for getting an example set up! I was able to reproduce it and you hit the nail on the head: this fails for private repos, but not public. It needs the Assuming this works for you, I'll be sure to get the docs updated to reflect this! |
@kzantow, thanks for the pointer, I can confirm that your suggestion works. I've now got:
and it sucesfully builds on release of my private test respostiory. |
Based on anchore/sbom-action#468 Signed-off-by: Feroz Salam <[email protected]>
I've recently started seeing faliures of uploading the artifact to a release:
Originally posted by @chris-j-major in #467 (comment)
With the extra debug logging:
I don't beleive this is related to permissions, as other steps in the same workflow are sucessfully uploading relese artifacts.
Thanks in advance :)
The text was updated successfully, but these errors were encountered: