diff --git a/.github/workflows/sast.yml b/.github/workflows/sast.yml index 94c0a2b..5a2db3a 100644 --- a/.github/workflows/sast.yml +++ b/.github/workflows/sast.yml @@ -2,21 +2,14 @@ on: pull_request_target: types: [labeled] - pull_request: - branches: [main] push: - branches: - - 'chore/**' - - 'feat/**' + branches-ignore: + - 'main' jobs: sast: runs-on: sast if: | github.event_name == 'push' || - ( - github.event_name == 'pull_request' && - github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name - ) || ( github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name &&