tricks/scripts/quick-scan
Elia el Lazkani 9d81a323d0
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
chore(): Enhances the capabilities of Tricks
- Adds quick scan capability for scanning without pushing the image
- Automates pulling Oras' latest version
2024-01-19 23:48:43 +01:00

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()