This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ pub struct Action {
36
36
#[ derive( Deserialize ) ]
37
37
#[ serde( rename_all = "kebab-case" ) ]
38
38
pub struct Input {
39
- pub description : String ,
39
+ // NOTE: documented as required, but experimentally it is not.
40
+ pub description : Option < String > ,
40
41
pub required : Option < bool > ,
41
42
pub default : Option < String > ,
42
43
}
@@ -45,7 +46,8 @@ pub struct Input {
45
46
#[ derive( Deserialize ) ]
46
47
#[ serde( rename_all = "kebab-case" ) ]
47
48
pub struct Output {
48
- pub description : String ,
49
+ // NOTE: documented as required, but experimentally it is not.
50
+ pub description : Option < String > ,
49
51
// NOTE: not optional for composite actions, but this is not worth modeling.
50
52
pub value : Option < String > ,
51
53
}
Original file line number Diff line number Diff line change
1
+ # ensures that we parse actions without input/output descriptions correctly
2
+ # see: https://github.com/woodruffw/zizmor/issues/501
3
+
4
+ inputs :
5
+ foo :
6
+ default : " lol"
7
+ outputs :
8
+ bar :
9
+ value : " hmm"
10
+
11
+ runs :
12
+ using : " composite"
13
+ steps :
14
+ - name : say hello
15
+ run : echo hello
16
+ shell : bash
You can’t perform that action at this time.
0 commit comments