Created
April 21, 2022 07:27
-
-
Save milancermak/9d4e58dc4aafdc7c809e597fda978f72 to your computer and use it in GitHub Desktop.
Amarna setup
This file contains hidden or 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: | |
- 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