Elia el Lazkani
9d81a323d0
- Adds quick scan capability for scanning without pushing the image - Automates pulling Oras' latest version
18 lines
356 B
Python
Executable file
18 lines
356 B
Python
Executable file
#!/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()
|