Skip to content

Commit

Permalink
Update security-audit.yml
Browse files Browse the repository at this point in the history
Restrict the action to main repo and not forks
  • Loading branch information
romoh authored and web-flow committed Mar 11, 2021
1 parent 5b38781 commit 10224f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

# sends an email if security audit failed
- name: Send mail
if: steps.cargo-audit.outcome != 'success'
if: steps.cargo-audit.outcome != 'success' && github.repository == 'deislabs/akri' # only run on main repo and not forks
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp-mail.outlook.com
Expand Down

0 comments on commit 10224f7

Please sign in to comment.