mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 09:52:37 +02:00
Do not allow uploading the token as an asset
This commit is contained in:
parent
e87547d3a6
commit
df3f8f7cb5
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ def main():
|
|||
|
||||
if args.token:
|
||||
log.debug(f"Reading token from {args.token}")
|
||||
# Ensure we are not uploading the token as an asset
|
||||
assert args.file != args.token
|
||||
with open(args.token) as f:
|
||||
token = f.read().strip()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue