Allow empty inputs with release artifacts#110
Allow empty inputs with release artifacts#110woodruffw merged 3 commits intosigstore:mainfrom JeanChristopheMorinPerso:allow_empty_inpts_with_release_artifacts
Conversation
…to true Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
|
Thanks @JeanChristopheMorinPerso! I'm reviewing now. |
woodruffw
left a comment
There was a problem hiding this comment.
This looks great! One nitpick.
Yeah, unfortunately tests here will probably be a PITA. I'm okay with skipping them for now; if we hit bugs on this path in the future, we'll investigate mocking up a release environment to test in. |
Signed-off-by: Jean-Christophe Morin <[email protected]>
woodruffw
left a comment
There was a problem hiding this comment.
Thanks @JeanChristopheMorinPerso!
Summary
Resolves #109
Some projects don't generate artifacts as part of their releases but would still like to have their source archives attached to releases signed (using
release-signing-artifacts). This was previously not possible to do with this action becauseinputswas a required input.With this pull request, it will be possible to not specify
inputsand userelease-signing-artifactsfor releases:Note that
inputsis still required ifrelease-signing-artifactsis nottrueand the event type is notrelease. In this case, the action will raise a descriptive error.Release Note
inputswas made optional when the event type isreleaseandrelease-signing-artifactsis true.Documentation
I adjusted the README to reflect the changes.
Tests
I'm not sure if I should add tests or not. I tested locally different scenarios and also ran the
selftestworkflow in my fork (https://github.com/JeanChristopheMorinPerso/gh-action-sigstore-python/actions/runs/7949857773), but I'm not sure how to properly test the release scenario without releasing a fork of the action...