debian-mirror-gitlab/lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2021-01-29 00:20:46 +05:30
# Read more about this feature here: https://docs.gitlab.com/ee/user/application_security/api_fuzzing/
2021-09-04 01:27:46 +05:30
# Configure API fuzzing with CI/CD variables (https://docs.gitlab.com/ee/ci/variables/README.html).
# List of available variables: https://docs.gitlab.com/ee/user/application_security/api_fuzzing/#available-cicd-variables
2020-10-24 23:57:45 +05:30
variables:
2021-09-04 01:27:46 +05:30
FUZZAPI_VERSION: "1"
2021-06-08 01:23:25 +05:30
SECURE_ANALYZERS_PREFIX: "registry.gitlab.com/gitlab-org/security-products/analyzers"
FUZZAPI_IMAGE: ${SECURE_ANALYZERS_PREFIX}/api-fuzzing:${FUZZAPI_VERSION}
2020-10-24 23:57:45 +05:30
apifuzzer_fuzz:
2021-01-29 00:20:46 +05:30
stage: fuzz
2021-09-04 01:27:46 +05:30
image: $FUZZAPI_IMAGE
2021-01-29 00:20:46 +05:30
allow_failure: true
rules:
2020-10-24 23:57:45 +05:30
- if: $API_FUZZING_DISABLED
when: never
- if: $API_FUZZING_DISABLED_FOR_DEFAULT_BRANCH &&
2021-01-29 00:20:46 +05:30
$CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
2020-10-24 23:57:45 +05:30
when: never
2021-09-04 01:27:46 +05:30
- if: $CI_COMMIT_BRANCH
2020-10-24 23:57:45 +05:30
script:
2021-09-04 01:27:46 +05:30
- /peach/analyzer-fuzz-api
2020-10-24 23:57:45 +05:30
artifacts:
when: always
paths:
2021-09-04 01:27:46 +05:30
- gl-assets
- gl-api-fuzzing-report.json
- gl-*.log
2020-10-24 23:57:45 +05:30
reports:
2021-09-04 01:27:46 +05:30
api_fuzzing: gl-api-fuzzing-report.json
2020-10-24 23:57:45 +05:30
# end