Commit 7b026978 authored by Wen Wei Li's avatar Wen Wei Li

test for ttc scanner

parent eeb1836c
Pipeline #5046 failed with stage
...@@ -5,40 +5,17 @@ name: sec_test ...@@ -5,40 +5,17 @@ name: sec_test
steps: steps:
- name: sast_scan - name: ttc_code_scan
image: prlab/drone_plugin image: prlab/ttc_code_scan
volumes:
- name: cache
path: /home/reports/
commands:
- echo $(python3 /plugin/main.py)
- python3 /usr/local/src/scan --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: settings:
host: SCAN_HOST:
from_secret: ssh_host from_secret: scan_host
username: SCAN_TYPE:
from_secret: ssh_username from_secret: scan_type
password: FILE_NAME:
from_secret: ssh_password from_secret: file_name
port : 22 ID:
target: ~/Downloads/drone_reports from_secret: id
source: /home/reports/
depends_on: ["sast_scan", "code-analysis"]
volumes: volumes:
- name: cache - name: cache
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment