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
daa5663f
Commit
daa5663f
authored
Jan 03, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
ac0889f2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
15 deletions
+12
-15
app/views/import/github/new.html.haml
app/views/import/github/new.html.haml
+2
-2
doc/user/application_security/sast/index.md
doc/user/application_security/sast/index.md
+5
-5
qa/qa/page/project/import/github.rb
qa/qa/page/project/import/github.rb
+5
-7
qa/qa/resource/project_imported_from_github.rb
qa/qa/resource/project_imported_from_github.rb
+0
-1
No files found.
app/views/import/github/new.html.haml
View file @
daa5663f
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
=
form_tag
personal_access_token_import_github_path
,
method: :post
do
=
form_tag
personal_access_token_import_github_path
,
method: :post
do
.form-group
.form-group
%label
.label-bold
=
_
(
'Personal Access Token'
)
%label
.label-bold
=
_
(
'Personal Access Token'
)
=
text_field_tag
:personal_access_token
,
''
,
class:
'form-control'
,
placeholder:
_
(
'e.g. %{token}'
)
%
{
token:
'8d3f016698e...'
}
=
text_field_tag
:personal_access_token
,
''
,
class:
'form-control'
,
placeholder:
_
(
'e.g. %{token}'
)
%
{
token:
'8d3f016698e...'
}
,
data:
{
qa_selector:
'personal_access_token_field'
}
%span
.form-text.text-muted
%span
.form-text.text-muted
=
import_github_personal_access_token_message
=
import_github_personal_access_token_message
...
@@ -29,4 +29,4 @@
...
@@ -29,4 +29,4 @@
.form-actions.d-flex.justify-content-end
.form-actions.d-flex.justify-content-end
=
link_to
_
(
'Cancel'
),
new_project_path
,
class:
'btn'
=
link_to
_
(
'Cancel'
),
new_project_path
,
class:
'btn'
=
submit_tag
_
(
'Authenticate'
),
class:
'btn btn-success ml-2'
=
submit_tag
_
(
'Authenticate'
),
class:
'btn btn-success ml-2'
,
data:
{
qa_selector:
'authenticate_button'
}
doc/user/application_security/sast/index.md
View file @
daa5663f
...
@@ -100,7 +100,7 @@ Add the following to your `.gitlab-ci.yml` file:
...
@@ -100,7 +100,7 @@ Add the following to your `.gitlab-ci.yml` file:
```
yaml
```
yaml
include
:
include
:
template
:
SAST.gitlab-ci.yml
-
template
:
SAST.gitlab-ci.yml
```
```
The included template will create a
`sast`
job in your CI/CD pipeline and scan
The included template will create a
`sast`
job in your CI/CD pipeline and scan
...
@@ -124,7 +124,7 @@ set the `SAST_GOSEC_LEVEL` variable to `2`:
...
@@ -124,7 +124,7 @@ set the `SAST_GOSEC_LEVEL` variable to `2`:
```
yaml
```
yaml
include
:
include
:
template
:
SAST.gitlab-ci.yml
-
template
:
SAST.gitlab-ci.yml
variables
:
variables
:
SAST_GOSEC_LEVEL
:
2
SAST_GOSEC_LEVEL
:
2
...
@@ -141,7 +141,7 @@ template inclusion and specify any additional keys under it. For example:
...
@@ -141,7 +141,7 @@ template inclusion and specify any additional keys under it. For example:
```
yaml
```
yaml
include
:
include
:
template
:
SAST.gitlab-ci.yml
-
template
:
SAST.gitlab-ci.yml
sast
:
sast
:
variables
:
variables
:
...
@@ -178,7 +178,7 @@ This does not require running the executor in privileged mode. For example:
...
@@ -178,7 +178,7 @@ This does not require running the executor in privileged mode. For example:
```
yaml
```
yaml
include
:
include
:
template
:
SAST.gitlab-ci.yml
-
template
:
SAST.gitlab-ci.yml
variables
:
variables
:
SAST_DISABLE_DIND
:
"
true"
SAST_DISABLE_DIND
:
"
true"
...
@@ -196,7 +196,7 @@ kubesec analyzer. In `.gitlab-ci.yml`, define:
...
@@ -196,7 +196,7 @@ kubesec analyzer. In `.gitlab-ci.yml`, define:
```
yaml
```
yaml
include
:
include
:
template
:
SAST.gitlab-ci.yml
-
template
:
SAST.gitlab-ci.yml
variables
:
variables
:
SCAN_KUBERNETES_MANIFESTS
:
"
true"
SCAN_KUBERNETES_MANIFESTS
:
"
true"
...
...
qa/qa/page/project/import/github.rb
View file @
daa5663f
...
@@ -8,8 +8,8 @@ module QA
...
@@ -8,8 +8,8 @@ module QA
include
Page
::
Component
::
Select2
include
Page
::
Component
::
Select2
view
'app/views/import/github/new.html.haml'
do
view
'app/views/import/github/new.html.haml'
do
element
:personal_access_token_field
,
'text_field_tag :personal_access_token'
# rubocop:disable QA/ElementWithPattern
element
:personal_access_token_field
element
:authenticate_button
,
"submit_tag _('Authenticate')"
# rubocop:disable QA/ElementWithPattern
element
:authenticate_button
end
end
view
'app/assets/javascripts/import_projects/components/provider_repo_table_row.vue'
do
view
'app/assets/javascripts/import_projects/components/provider_repo_table_row.vue'
do
...
@@ -20,11 +20,9 @@ module QA
...
@@ -20,11 +20,9 @@ module QA
end
end
def
add_personal_access_token
(
personal_access_token
)
def
add_personal_access_token
(
personal_access_token
)
fill_in
'personal_access_token'
,
with:
personal_access_token
fill_element
(
:personal_access_token_field
,
personal_access_token
)
end
click_element
(
:authenticate_button
)
finished_loading?
def
list_repos
click_button
'List your GitHub repositories'
end
end
def
import!
(
full_path
,
name
)
def
import!
(
full_path
,
name
)
...
...
qa/qa/resource/project_imported_from_github.rb
View file @
daa5663f
...
@@ -23,7 +23,6 @@ module QA
...
@@ -23,7 +23,6 @@ module QA
Page
::
Project
::
Import
::
Github
.
perform
do
|
import_page
|
Page
::
Project
::
Import
::
Github
.
perform
do
|
import_page
|
import_page
.
add_personal_access_token
(
@personal_access_token
)
import_page
.
add_personal_access_token
(
@personal_access_token
)
import_page
.
list_repos
import_page
.
import!
(
@github_repository_path
,
@name
)
import_page
.
import!
(
@github_repository_path
,
@name
)
end
end
end
end
...
...
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