-
Notifications
You must be signed in to change notification settings - Fork 128
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
[feature] support creating a draft release #1476
Comments
We ran into this in https://github.com/sigstore/timestamp-authority. See the release GHA - https://github.com/sigstore/timestamp-authority/blob/main/.github/workflows/release.yaml The GHA first creates a draft release with the binary assets, and then runs the provenance generator. The generator will create a release (not a draft) using the tag. The issues are:
Ideally the GHA generator would either detect an existing draft release and append the attestation or I could provide flags to the generator to control this behavior. |
I think as a mitigation (suggested by Hayden!) users could use |
Yes, setting |
Thanks, doing that here! sigstore/timestamp-authority#215 |
Thank you @ianlewis for the code pointer, a test release worked as expected! |
/cc @developer-guy BTW would love PR(s) for this if you have some time to take a look. |
While working on the osv-scanner project, I realized that they mark their release as a draft for some reason. In that case, if we set the So, maybe we can add a new parameter to these generators for people who might want to mark their release as a draft, if so, they can pass that parameter to the |
What I have thought is that;
does that sound good @ianlewis, if so, please assign it to me. PTAL @ianlewis |
Yep, that's the gist of it I think. |
We need end-to-end test before closing this issue. Test for prerelease flags are in https://github.com/search?q=repo%3Aslsa-framework%2Fexample-package%20prerelease&type=code |
I started with the generic builder and will continue with the others as well if you accept the solution: Fixes #1476 I tried that in osv-scanner project and it worked: * Job: _https://github.com/developer-guy/osv-scanner/actions/runs/4536204956/jobs/7992687991_ * Release: _https://github.com/developer-guy/osv-scanner/releases/tag/untagged-5bf09e3accd2794d0d10_ PTAL @laurentsimon @asraa @ianlewis --------- Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com> Signed-off-by: Ian Lewis <ianlewis@google.com> Co-authored-by: Ian Lewis <ianlewis@google.com>
Reopen for e2e test. |
Here is the PR for e2e tests: slsa-framework/example-package#167 |
The Go builder and generic generator use
softprops/action-gh-release
to create releases. We should support setting thedraft
flag so that users can create draft releases.Related: sigstore/helm-sigstore#111
The text was updated successfully, but these errors were encountered: