--- kind: pipeline type: docker name: deploy steps: # scan - name: sast_scan image: prlab/sast_scan volumes: - name: cache path: /home/reports/ commands: - echo `pwd` - echo $(ls) - python3 /usr/local/src/scan --type yaml,dockerfile,kubernetes --src ./src -o /home/reports - name: code-analysis image: prlab/drone-sonar settings: sonar_host: from_secret: sonar_host SONAR_TOKEN: from_secret: sonar_token - name: scp image: appleboy/drone-scp volumes: - name: cache path: /home/reports/ settings: host: from_secret: ssh_host username: from_secret: ssh_username password: from_secret: ssh_password port : 22 target: /home/oran/Downloads/drone_reports source: /home/reports/ depends_on: ["sast_scan", "code-analysis"] volumes: - name: cache temp: {}