Skip to content

Instantly share code, notes, and snippets.

@milancermak
Created April 21, 2022 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milancermak/9d4e58dc4aafdc7c809e597fda978f72 to your computer and use it in GitHub Desktop.
Save milancermak/9d4e58dc4aafdc7c809e597fda978f72 to your computer and use it in GitHub Desktop.
Amarna setup
name: Cairo static analysis
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Python setup
uses: actions/setup-python@v3
with:
python-version: '3.8'
cache: pip
cache-dependency-path: '**/requirements-dev.txt'
- name: Env setup
run: pip install -r requirements-dev.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@v1
with:
sarif_file: out.sarif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment