Added horusec (#10499)

* Added horusec

* Improving aesthetics

* Restrict branch
This commit is contained in:
Taranpreet26311 2022-04-08 20:22:04 +05:30 committed by GitHub
parent ac8d27bcf1
commit 6903d52dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/horusec.yaml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Horusec Security Scan
on:
schedule:
# Runs cron at 16.00 UTC on
- cron: '0 0 * * SUN'
jobs:
Horusec_Scan:
name: horusec-Scan
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- name: Check out code
uses: actions/checkout@v2
with: # Required when commit authors is enabled
fetch-depth: 0
- name: Running Security Scan
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash -s latest
horusec start -t="10000" -p="./" -e="true" -i="**/crypto/bls/herumi/**, **/**/*_test.go, **/third_party/afl/**, **/crypto/keystore/key.go"