You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,13 +217,9 @@ ignore_locations:
217
217
To create unit tests for our new private auditor, create the directory `./parliament/private_auditors/tests/` and create the file `test_sensitive_bucket_access.py` there with the contents:
Copy file name to clipboardExpand all lines: parliament/cli.py
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -137,10 +137,12 @@ def main():
137
137
help='Provide a string such as \'{"Version": "2012-10-17","Statement": {"Effect": "Allow","Action": ["s3:GetObject", "s3:PutBucketPolicy"],"Resource": ["arn:aws:s3:::bucket1", "arn:aws:s3:::bucket2/*"]}}\'',
138
138
type=str,
139
139
)
140
-
parser.add_argument('--file',
141
-
help="Provide a policy via stdin (e.g. through piping) or --file",
142
-
type=argparse.FileType('r'),
143
-
default=sys.stdin)
140
+
parser.add_argument(
141
+
"--file",
142
+
help="Provide a policy via stdin (e.g. through piping) or --file",
143
+
type=argparse.FileType("r"),
144
+
default=sys.stdin,
145
+
)
144
146
parser.add_argument(
145
147
"--directory", help="Provide a path to directory with policy files", type=str
0 commit comments