Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 065faad

Browse files
authored
bugfix: make workflow_call.secrets.*.required optional (#40)
This field is documented as required in the SchemaStore JSON, but is empirically not actually required by GitHub Actions. See zizmorcore/zizmor#646.
1 parent 9527499 commit 065faad

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/workflow/event.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ pub struct WorkflowCallOutput {
265265
#[serde(rename_all = "kebab-case")]
266266
pub struct WorkflowCallSecret {
267267
pub description: Option<String>,
268+
#[serde(default)]
268269
pub required: bool,
269270
}
270271

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://github.com/woodruffw/zizmor/issues/646
2+
3+
name: Test
4+
5+
on:
6+
workflow_call:
7+
secrets:
8+
my-secret:
9+
description: My secret
10+
11+
jobs:
12+
job:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- run: echo ${{ secrets.my-secret }}

0 commit comments

Comments
 (0)