From ba6ab2ce3757510e23bfdabc02ea6f178143b425 Mon Sep 17 00:00:00 2001 From: Yorke Rhodes Date: Tue, 26 Mar 2024 12:59:56 -0600 Subject: [PATCH] Update static-analysis.yml (#3480) ### Description - Updates slither static analysis to run on main for use with github code scanning --- .github/workflows/static-analysis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 5f14fc05b3..881d8f9bda 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,12 +1,17 @@ name: static-analysis on: - # Triggers the workflow on pull request against main - pull_request: + push: + # Triggers the workflow on push to main branches: [main] paths: - 'solidity/**' - '.github/workflows/static-analysis.yml' + # Triggers the workflow on pull request + pull_request: + paths: + - 'solidity/**' + - '.github/workflows/static-analysis.yml' jobs: slither: