Skip to content

rust_sca_scan_test #135

rust_sca_scan_test

rust_sca_scan_test #135

Workflow file for this run

name: Rust CI Scan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
repository_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Cloud Defense Scan
env:
SCA_SCAN_URL: https://cd-scanner.herokuapp.com/processAndSave
run: |
curl https://raw.githubusercontent.com/CloudDefenseAI/cd/master/latest/cd-latest-linux-x64.tar.gz > /tmp/cd-latest-linux-x64.tar.gz
tar -C /tmp -xzf /tmp/cd-latest-linux-x64.tar.gz && chmod +x /tmp/cdefense
/tmp/cdefense scan --lang=rust --quiet --project-name=vulnerable-rust --api-key=${{ secrets.CD_API_KEY }}
- name: Run tests
run: cargo test --verbose
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose