diff --git a/expr_sema.go b/expr_sema.go index b7bb4e8ed..8f27bb186 100644 --- a/expr_sema.go +++ b/expr_sema.go @@ -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 diff --git a/expr_sema_test.go b/expr_sema_test.go index 959ef1682..4a57c3f30 100644 --- a/expr_sema_test.go +++ b/expr_sema_test.go @@ -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",