File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 44 types : [opened, reopened]
55 branches : [ master, stable ]
66
7+ # Declare default permissions as none.
8+ permissions : none
9+
710jobs :
811 triage :
912 permissions :
Original file line number Diff line number Diff line change 77 tags :
88 - v*
99
10+ # Declare default permissions as read only.
11+ permissions : read-all
12+
1013jobs :
1114 BUILD :
1215 if : github.repository == 'reactive-firewall/python-repo'
Original file line number Diff line number Diff line change 2020 schedule :
2121 - cron : ' 17 5 * * 1'
2222
23+ # Declare default permissions as read only.
24+ permissions : read-all
25+
2326jobs :
2427 analyze :
2528 name : Analyze
Original file line number Diff line number Diff line change 2828def readFile (filename ):
2929 """Helper Function to read files"""
3030 theResult = None
31- try :
32- with open (str ("""./{}""" ).format (str (filename ))) as f :
33- theResult = f .read ()
34- except Exception :
35- theResult = str (
36- """See https://github.com/reactive-firewall/python-repo/{}"""
37- ).format (filename )
31+ if filename in ("""README.md""" , """LICENSE.md""" ):
32+ try :
33+ with open (str ("""./{}""" ).format (str (filename ))) as f :
34+ theResult = f .read ()
35+ except Exception :
36+ theResult = str (
37+ """See https://github.com/reactive-firewall/python-repo/{}"""
38+ ).format (filename )
3839 return theResult
3940
4041
You can’t perform that action at this time.
0 commit comments