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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
9756a6cc
Commit
9756a6cc
authored
Mar 12, 2019
by
Matija Čupić
Committed by
Evan Read
Mar 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "A lot of Trigger Token is Accessible from Internet because of the Documentation"
parent
54df7200
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
doc/ci/triggers/README.md
doc/ci/triggers/README.md
+6
-3
No files found.
doc/ci/triggers/README.md
View file @
9756a6cc
...
@@ -17,6 +17,12 @@ The following methods of authentication are supported.
...
@@ -17,6 +17,12 @@ The following methods of authentication are supported.
A unique trigger token can be obtained when
[
adding a new trigger
](
#adding-a-new-trigger
)
.
A unique trigger token can be obtained when
[
adding a new trigger
](
#adding-a-new-trigger
)
.
DANGER:
**Danger:**
Passing plain text tokens in public projects is a security issue. Potential
attackers can impersonate the user that exposed their trigger token publicly in
their
`.gitlab-ci.yml`
file. Use
[
variables
](
../variables/README.md#variables
)
to protect trigger tokens.
## Adding a new trigger
## Adding a new trigger
You can add a new trigger by going to your project's
You can add a new trigger by going to your project's
...
@@ -53,9 +59,6 @@ The action is irreversible.
...
@@ -53,9 +59,6 @@ The action is irreversible.
>
>
> - Valid refs are only the branches and tags. If you pass a commit SHA as a ref,
> - Valid refs are only the branches and tags. If you pass a commit SHA as a ref,
> it will not trigger a job.
> it will not trigger a job.
> - If your project is public, passing the token in plain text is probably not the
> wisest idea, so you might want to use a
> [variable](../variables/README.md#variables) for that purpose.
To trigger a job you need to send a
`POST`
request to GitLab's API endpoint:
To trigger a job you need to send a
`POST`
request to GitLab's API endpoint:
...
...
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