Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0871fe54
Commit
0871fe54
authored
Apr 14, 2022
by
Michael Eddington
Committed by
Terri Chu
Apr 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change _VERSION_TAG to _IMAGE_SUFFIX in API Sec templates
parent
d8652e92
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
ee/spec/lib/gitlab/ci/templates/api_fuzzing_latest_gitlab_ci_yaml_spec.rb
...ab/ci/templates/api_fuzzing_latest_gitlab_ci_yaml_spec.rb
+4
-4
ee/spec/lib/gitlab/ci/templates/dast_api_latest_gitlab_ci_yaml_spec.rb
...itlab/ci/templates/dast_api_latest_gitlab_ci_yaml_spec.rb
+4
-4
lib/gitlab/ci/templates/Security/API-Fuzzing.latest.gitlab-ci.yml
...ab/ci/templates/Security/API-Fuzzing.latest.gitlab-ci.yml
+3
-3
lib/gitlab/ci/templates/Security/DAST-API.latest.gitlab-ci.yml
...itlab/ci/templates/Security/DAST-API.latest.gitlab-ci.yml
+3
-3
No files found.
ee/spec/lib/gitlab/ci/templates/api_fuzzing_latest_gitlab_ci_yaml_spec.rb
View file @
0871fe54
...
...
@@ -146,8 +146,8 @@ RSpec.describe 'API-Fuzzing.latest.gitlab-ci.yml' do
create
(
:ci_variable
,
project:
project
,
key:
'FUZZAPI_TARGET_URL'
,
value:
'http://example.com'
)
end
it
'sets FUZZAPI_
VERSION_TAG
to ""'
do
expect
(
build_variables
).
to
be_include
([
'FUZZAPI_
VERSION_TAG
'
,
''
])
it
'sets FUZZAPI_
IMAGE_SUFFIX
to ""'
do
expect
(
build_variables
).
to
be_include
([
'FUZZAPI_
IMAGE_SUFFIX
'
,
''
])
end
end
...
...
@@ -159,8 +159,8 @@ RSpec.describe 'API-Fuzzing.latest.gitlab-ci.yml' do
create
(
:ci_variable
,
project:
project
,
key:
'CI_GITLAB_FIPS_MODE'
,
value:
'true'
)
end
it
'sets FUZZAPI_
VERSION_TAG
to "-fips"'
do
expect
(
build_variables
).
to
be_include
([
'FUZZAPI_
VERSION_TAG
'
,
'-fips'
])
it
'sets FUZZAPI_
IMAGE_SUFFIX
to "-fips"'
do
expect
(
build_variables
).
to
be_include
([
'FUZZAPI_
IMAGE_SUFFIX
'
,
'-fips'
])
end
end
end
...
...
ee/spec/lib/gitlab/ci/templates/dast_api_latest_gitlab_ci_yaml_spec.rb
View file @
0871fe54
...
...
@@ -107,8 +107,8 @@ RSpec.describe 'DAST-API.latest.gitlab-ci.yml' do
create
(
:ci_variable
,
project:
project
,
key:
'CI_GITLAB_FIPS_MODE'
,
value:
'false'
)
end
it
'sets DAST_API_
VERSION_TAG
to ""'
do
expect
(
build_variables
).
to
be_include
([
'DAST_API_
VERSION_TAG
'
,
''
])
it
'sets DAST_API_
IMAGE_SUFFIX
to ""'
do
expect
(
build_variables
).
to
be_include
([
'DAST_API_
IMAGE_SUFFIX
'
,
''
])
end
end
...
...
@@ -120,8 +120,8 @@ RSpec.describe 'DAST-API.latest.gitlab-ci.yml' do
create
(
:ci_variable
,
project:
project
,
key:
'CI_GITLAB_FIPS_MODE'
,
value:
'true'
)
end
it
'sets DAST_API_
VERSION_TAG
to "-fips"'
do
expect
(
build_variables
).
to
be_include
([
'DAST_API_
VERSION_TAG
'
,
'-fips'
])
it
'sets DAST_API_
IMAGE_SUFFIX
to "-fips"'
do
expect
(
build_variables
).
to
be_include
([
'DAST_API_
IMAGE_SUFFIX
'
,
'-fips'
])
end
end
end
...
...
lib/gitlab/ci/templates/Security/API-Fuzzing.latest.gitlab-ci.yml
View file @
0871fe54
...
...
@@ -27,12 +27,12 @@ variables:
SECURE_ANALYZERS_PREFIX
:
"
registry.gitlab.com/security-products"
#
FUZZAPI_VERSION
:
"
1"
FUZZAPI_
VERSION_TAG
:
"
"
FUZZAPI_
IMAGE_SUFFIX
:
"
"
FUZZAPI_IMAGE
:
api-fuzzing
apifuzzer_fuzz
:
stage
:
fuzz
image
:
$SECURE_ANALYZERS_PREFIX/$FUZZAPI_IMAGE:$FUZZAPI_VERSION$FUZZAPI_
VERSION_TAG
image
:
$SECURE_ANALYZERS_PREFIX/$FUZZAPI_IMAGE:$FUZZAPI_VERSION$FUZZAPI_
IMAGE_SUFFIX
allow_failure
:
true
rules
:
-
if
:
$API_FUZZING_DISABLED
...
...
@@ -43,7 +43,7 @@ apifuzzer_fuzz:
-
if
:
$CI_COMMIT_BRANCH &&
$CI_GITLAB_FIPS_MODE == "true"
variables
:
FUZZAPI_
VERSION_TAG
:
"
-fips"
FUZZAPI_
IMAGE_SUFFIX
:
"
-fips"
-
if
:
$CI_COMMIT_BRANCH
script
:
-
/peach/analyzer-fuzz-api
...
...
lib/gitlab/ci/templates/Security/DAST-API.latest.gitlab-ci.yml
View file @
0871fe54
...
...
@@ -27,12 +27,12 @@ variables:
SECURE_ANALYZERS_PREFIX
:
"
registry.gitlab.com/security-products"
#
DAST_API_VERSION
:
"
1"
DAST_API_
VERSION_TAG
:
"
"
DAST_API_
IMAGE_SUFFIX
:
"
"
DAST_API_IMAGE
:
api-fuzzing
dast_api
:
stage
:
dast
image
:
$SECURE_ANALYZERS_PREFIX/$DAST_API_IMAGE:$DAST_API_VERSION$DAST_API_
VERSION_TAG
image
:
$SECURE_ANALYZERS_PREFIX/$DAST_API_IMAGE:$DAST_API_VERSION$DAST_API_
IMAGE_SUFFIX
allow_failure
:
true
rules
:
-
if
:
$DAST_API_DISABLED
...
...
@@ -43,7 +43,7 @@ dast_api:
-
if
:
$CI_COMMIT_BRANCH &&
$CI_GITLAB_FIPS_MODE == "true"
variables
:
DAST_API_
VERSION_TAG
:
"
-fips"
DAST_API_
IMAGE_SUFFIX
:
"
-fips"
-
if
:
$CI_COMMIT_BRANCH
script
:
-
/peach/analyzer-dast-api
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment