Commit 1d4d4d62 authored by Michael Eddington's avatar Michael Eddington Committed by Stan Hu

Removing services from API Fuzzing CI Template

parent e3bc67fa
---
title: Remove services section from API Fuzzing CI template
merge_request: 54746
author:
type: changed
...@@ -45,13 +45,10 @@ apifuzzer_fuzz: ...@@ -45,13 +45,10 @@ apifuzzer_fuzz:
entrypoint: ["/bin/bash", "-l", "-c"] entrypoint: ["/bin/bash", "-l", "-c"]
variables: variables:
FUZZAPI_PROJECT: $CI_PROJECT_PATH FUZZAPI_PROJECT: $CI_PROJECT_PATH
FUZZAPI_API: http://apifuzzer:80 FUZZAPI_API: http://localhost:80
FUZZAPI_NEW_REPORT: 1 FUZZAPI_NEW_REPORT: 1
FUZZAPI_LOG_SCANNER: gl-apifuzzing-api-scanner.log
TZ: America/Los_Angeles TZ: America/Los_Angeles
services:
- name: $FUZZAPI_IMAGE
alias: apifuzzer
entrypoint: ["dotnet", "/peach/Peach.Web.dll"]
allow_failure: true allow_failure: true
rules: rules:
- if: $FUZZAPI_D_TARGET_IMAGE - if: $FUZZAPI_D_TARGET_IMAGE
...@@ -80,17 +77,26 @@ apifuzzer_fuzz: ...@@ -80,17 +77,26 @@ apifuzzer_fuzz:
# Make sure asset path exists # Make sure asset path exists
- mkdir -p $FUZZAPI_REPORT_ASSET_PATH - mkdir -p $FUZZAPI_REPORT_ASSET_PATH
# #
# Start API Security background process
- dotnet /peach/Peach.Web.dll &> $FUZZAPI_LOG_SCANNER &
- APISEC_PID=$!
#
# Start scanning # Start scanning
- worker-entry - worker-entry
# #
# Run user provided post-script # Run user provided post-script
- sh -c "$FUZZAPI_POST_SCRIPT" - sh -c "$FUZZAPI_POST_SCRIPT"
# #
# Shutdown API Security
- kill $APISEC_PID
- wait $APISEC_PID
#
artifacts: artifacts:
when: always when: always
paths: paths:
- $FUZZAPI_REPORT_ASSET_PATH - $FUZZAPI_REPORT_ASSET_PATH
- $FUZZAPI_REPORT - $FUZZAPI_REPORT
- $FUZZAPI_LOG_SCANNER
reports: reports:
api_fuzzing: $FUZZAPI_REPORT api_fuzzing: $FUZZAPI_REPORT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment