diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index e181125c..fb606da4 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -32,19 +32,19 @@ jobs: ~/.cargo key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - # - name: Check if Caracal is installed - # id: check-caracal - # run: | - # if ! command -v caracal &> /dev/null; then - # echo "Caracal is not installed. Installing..." - # cargo install --git https://github.com/crytic/caracal --profile release --force - # else - # echo "Caracal is already installed." - # fi - # - name: Run Caracal - # run: caracal detect . > caracal-output.txt - # - name: Save Caracal Output as an Artifact - # uses: actions/upload-artifact@v3 - # with: - # name: caracal-cairo - # path: caracal-output.txt + - name: Check if Caracal is installed + id: check-caracal + run: | + if ! command -v caracal &> /dev/null; then + echo "Caracal is not installed. Installing..." + cargo install --git https://github.com/crytic/caracal --profile release --force + else + echo "Caracal is already installed." + fi + - name: Run Caracal + run: caracal detect . > caracal-output.txt + - name: Save Caracal Output as an Artifact + uses: actions/upload-artifact@v3 + with: + name: caracal-cairo + path: caracal-output.txt