tricks/scripts/quick-scan

19 lines
356 B
Text
Raw Normal View History

#!/usr/bin/env python
import sys
from args import argument_parse
from trivy import Trivy
def main():
args = argument_parse()
trivy = Trivy(args.image, args.tag)
scan = trivy.full_scan(image_src="remote", generate_report=False)
if not scan:
sys.exit(1)
print("Full scan successful...")
if __name__ == '__main__':
main()