ci: add aderyn to github actions #16
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: Aderyn Static Analysis | |
on: | |
pull_request: | |
branches: | |
- ci/aderyn-analysis | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
aderyn: | |
runs-on: blacksmith-2vcpu-ubuntu-2204 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install Aderyn | |
run: cargo install --git https://github.com/Cyfrin/aderyn.git --tag v0.3.3 | |
- name: Generate Aderyn Report | |
run: aderyn --output report.md . | |
- name: Upload Aderyn Report as Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: aderyn-report | |
path: report.md |