-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow empty inputs with release artifacts (#110)
* Make inputs optional on releases if release-signing-artifacts is set to true Signed-off-by: Jean-Christophe Morin <[email protected]> * Add basic .gitignore to ignore venv Signed-off-by: Jean-Christophe Morin <[email protected]> * Make behavior more explicit Signed-off-by: Jean-Christophe Morin <[email protected]> --------- Signed-off-by: Jean-Christophe Morin <[email protected]>
- Loading branch information
1 parent
8579d48
commit 08a568c
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
env/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ optional. | |
### `inputs` | ||
|
||
The `inputs` setting controls what files `sigstore-python` signs. At least one input must be | ||
provided. | ||
provided unless [release-signing-artifacts](#release-signing-artifacts) is set to `true` on release events. | ||
|
||
To sign one or more files: | ||
|
||
|
@@ -405,6 +405,22 @@ permissions: | |
release-signing-artifacts: true | ||
``` | ||
|
||
On release events, it is also valid to have no explicit inputs. When used on release | ||
events with `release-signing-artifacts: true`, this action will sign any pre-existing | ||
release artifacts: | ||
|
||
```yaml | ||
permissions: | ||
contents: write | ||
# ... | ||
- uses: sigstore/[email protected] | ||
with: | ||
# Only valid on release events | ||
release-signing-artifacts: true | ||
``` | ||
|
||
### Internal options | ||
<details> | ||
<summary>⚠️ Internal options ⚠️</summary> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters