Add a permissions block for generated workflows
Ensure that all workflows are able to write security events.
This commit is contained in:
parent
e9d52340a3
commit
e9aa2c6f62
18 changed files with 37 additions and 1 deletions
|
|
@ -23,7 +23,6 @@ header = """# Warning: This file is generated automatically, and should not be m
|
|||
|
||||
"""
|
||||
|
||||
|
||||
class NonAliasingRTRepresenter(ruamel.yaml.representer.RoundTripRepresenter):
|
||||
def ignore_aliases(self, data):
|
||||
return True
|
||||
|
|
@ -71,6 +70,9 @@ for file in os.listdir('checks'):
|
|||
}
|
||||
},
|
||||
'name': checkSpecification['name'],
|
||||
'permissions': {
|
||||
'security-events': 'write'
|
||||
},
|
||||
'runs-on': '${{ matrix.os }}',
|
||||
'steps': steps
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue