Skip to content

MGT-345: Initialize rewards-pool deposit authority signature #1

MGT-345: Initialize rewards-pool deposit authority signature

MGT-345: Initialize rewards-pool deposit authority signature #1

Workflow file for this run

name: Soteria Scan
on:
push:
branches: master
pull_request:
env:
CARGO_TERM_COLOR: always
SOLANA_VERSION: "1.9.5"
jobs:
build:
name: Soteria
runs-on: ubuntu-latest
steps:
- name: Check-out repo
uses: actions/checkout@v2
- name: Cache Solana binaries
uses: actions/cache@v2
id: solana-cache
with:
path: |
~/.cache/solana
~/.local/share/solana
~/.rustup
key: solana-${{ env.SOLANA_VERSION }}
- name: Cache build dependencies
uses: Swatinem/rust-cache@v1
with:
target-dir: .coderrect/build
- name: Install Solana
if: steps.solana-cache.outputs.cache-hit != 'true'
run: |
echo Installing Solana v${{ env.SOLANA_VERSION }}...
sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_VERSION }}/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
echo Installing bpf toolchain...
(cd /home/runner/.local/share/solana/install/active_release/bin/sdk/bpf/scripts; ./install.sh)
shell: bash
- name: Install Soteria
run: |
echo Installing 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
shell: bash
- name: Run Soteria
run: cd programs/voter-stake-registry/ && soteria -analyzeAll .
shell: bash