Skip to content

Commit

Permalink
fix(ci): prevents semgrep from failing on forks (#3092)
Browse files Browse the repository at this point in the history
* prevents semgrep from failing when its coming from a fork

* update semgrep workflow operator logic

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update .github/workflows/semgrep.yml

Co-authored-by: Alex Gartner <[email protected]>

---------

Co-authored-by: jkan2 <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Alex Gartner <[email protected]>
  • Loading branch information
4 people authored Nov 6, 2024
1 parent d2e1ffc commit 234dd87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
container:
image: ghcr.io/zeta-chain/semgrep-semgrep:1.90.0

if: (github.actor != 'dependabot[bot]')
if: |
github.actor != 'dependabot[bot]' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'zeta-chain/node')
steps:
- uses: actions/checkout@v4
- name: Checkout semgrep-utilities repo
Expand Down

0 comments on commit 234dd87

Please sign in to comment.