Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion expr_sema.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ var BuiltinGlobalVariableTypes = map[string]ExprType{
"ports": NewMapObjectType(StringType{}),
}),
),
"status": StringType{},
"status": StringType{},
"workflow_file_path": StringType{},
"workflow_ref": StringType{},
"workflow_repository": StringType{},
"workflow_sha": StringType{},
}),
// https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
"steps": NewEmptyStrictObjectType(), // This value will be updated contextually
Expand Down
5 changes: 5 additions & 0 deletions expr_sema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ func TestExprSemanticsCheckOK(t *testing.T) {
input: "job.container.network",
expected: StringType{},
},
{
what: "job workflow identity context property",
input: "job.workflow_ref",
expected: StringType{},
},
{
what: "object property dereference for any type",
input: "github.event.labels",
Expand Down