Soteria updates

This commit is contained in:
silas 2022-01-20 19:06:41 +00:00 committed by Christian Kamm
parent 3566b7eece
commit e1980488bd
2 changed files with 19 additions and 27 deletions

View File

@ -38,7 +38,7 @@ jobs:
run: cargo clippy -- --deny=warnings --allow=clippy::style --allow=clippy::complexity
tests:
name: Test and Soteria
name: Test
runs-on: ubuntu-latest
steps:
@ -71,29 +71,3 @@ jobs:
- name: Run bpf tests
run: cargo test-bpf
# Create a cache for Soteria
- name: Cache Soteria
id: cache-soteria
uses: actions/cache@v2
with:
path: ~/.cache/soteria
key: ${{ runner.os }}-soteria
# Install Soteria
- name: Install Soteria
run: |
echo "Downloading Soteria..."
sh -c "$(curl -k https://supercompiler.xyz/install)"
export PATH=$PWD/soteria-linux-develop/bin/:$PATH
echo "$PWD/soteria-linux-develop/bin" >> $GITHUB_PATH
echo "Updating Rust..."
rustup update
echo "Soteria ready!"
# Run Soteria tests against Cargo.toml for this repo (root folder)
- name: Run Soteria
run: |
echo "Running Soteria..."
soteria -analyzeAll . || true
echo "Soteria finished!"

18
.github/workflows/ci-soteria.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Soteria Scan
on:
push:
branches: [master, v*.*]
pull_request:
branches: [master, v*.*]
jobs:
build:
name: Soteria Vulnerability Scanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Soteria Scan
uses: silas-x/soteria-action@v0.2
# continue-on-error: true