-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,13 @@ jobs: | |
working-directory: ./targets/apps/VAmPI-master | ||
name: Horusec Scan | ||
steps: | ||
- name: Run Horusec | ||
id: run_horusec | ||
uses: fike/[email protected] | ||
with: | ||
arguments: -p="./" --ignore="**/.vscode/**, **/*.env, **/.mypy_cache/**, **/tests/**" | ||
# - name: Run Horusec | ||
# id: run_horusec | ||
# uses: fike/[email protected] | ||
# with: | ||
# arguments: -p="./" --ignore="**/.vscode/**, **/*.env, **/.mypy_cache/**, **/tests/**" | ||
- name: Run Horusec | ||
run: | | ||
chmod +x ../../tools/horusec/horusec.sh | ||
bash ../../tools/horusec/horusec.sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
mkdir reports | ||
|
||
#CRIA PASTA DE RELATÓRIO | ||
mkdir reports | ||
|
||
#CONFIGURAÇÃO DE PARÂMETROS DO HORUSEC | ||
#image="0xtiago/horusec-cli" | ||
image="horuszup/horusec-cli:v2.9.0-beta.3" | ||
severity_exception="LOW,UNKNOWN,INFO" | ||
report_type="json" | ||
report_path="reports/horusec_report.json" | ||
ignore="**/tmp/**, | ||
**/.vscode/**,\ | ||
**/.venv/**, \ | ||
**/.env/**, \ | ||
**/tests/**, \ | ||
**/test/**, \ | ||
**/test/, \ | ||
**/*.Tests/**, \ | ||
**/*.Test/**, \ | ||
**/test_*, \ | ||
**/appsettings.*.json, \ | ||
**/bin/Debug/*/appsettings.*.json, \ | ||
**/*.yml, \ | ||
**/bin/Debug/*/appsettings.json, \ | ||
**/*.sarif" ;\ | ||
|
||
|
||
# EXECUTA CONTAINER DO HORUSEC REMOVENDO-O AO FIM DA EXECUÇÃO | ||
docker pull $image | ||
docker run --rm \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v $(pwd):/src/horusec $image horusec start \ | ||
-p /src/horusec -P $(pwd) \ | ||
-o="$report_type" -O=/src/horusec/$report_path \ | ||
-s=$severity_exception \ | ||
--ignore=$ignore \ | ||
--information-severity=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
trigger! | ||
trigger!! |