@@ -10,11 +10,12 @@ import (
1010
1111// SingleWorkflow is a workflow with single job and single matrix
1212type SingleWorkflow struct {
13- Name string `yaml:"name,omitempty"`
14- RawOn yaml.Node `yaml:"on,omitempty"`
15- Env map [string ]string `yaml:"env,omitempty"`
16- RawJobs yaml.Node `yaml:"jobs,omitempty"`
17- Defaults Defaults `yaml:"defaults,omitempty"`
13+ Name string `yaml:"name,omitempty"`
14+ RawOn yaml.Node `yaml:"on,omitempty"`
15+ Env map [string ]string `yaml:"env,omitempty"`
16+ RawJobs yaml.Node `yaml:"jobs,omitempty"`
17+ Defaults Defaults `yaml:"defaults,omitempty"`
18+ RawPermissions yaml.Node `yaml:"permissions,omitempty"`
1819}
1920
2021func (w * SingleWorkflow ) Job () (string , * Job ) {
@@ -84,6 +85,7 @@ type Job struct {
8485 With map [string ]interface {} `yaml:"with,omitempty"`
8586 RawSecrets yaml.Node `yaml:"secrets,omitempty"`
8687 RawConcurrency * model.RawConcurrency `yaml:"concurrency,omitempty"`
88+ RawPermissions yaml.Node `yaml:"permissions,omitempty"`
8789}
8890
8991func (j * Job ) Clone () * Job {
@@ -107,6 +109,7 @@ func (j *Job) Clone() *Job {
107109 With : j .With ,
108110 RawSecrets : j .RawSecrets ,
109111 RawConcurrency : j .RawConcurrency ,
112+ RawPermissions : j .RawPermissions ,
110113 }
111114}
112115
0 commit comments