MVP Guild #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cairo static analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Python setup | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
cache: pip | |
cache-dependency-path: "**/requirements.txt" | |
- name: Env setup | |
run: pip install -r requirements.txt | |
- name: Install Amarna | |
run: git clone https://github.com/crytic/amarna.git && cd amarna && pip install -e . | |
- name: Run Amarna static analysis | |
run: amarna contracts/ -o out.sarif | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: out.sarif |