Skip to content

Commit c187f75

Browse files
mariusSincoviciolekoliinyk
authored andcommitted
Add gitlab token for private repos
Signed-off-by: Marius Sincovici <[email protected]> Signed-off-by: Marius Sincovici <[email protected]>
1 parent 0582759 commit c187f75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/trigger-gitlab-pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
project-id:
3030
description: 'GitLab project ID'
3131
required: true
32+
github-token:
33+
description: 'GitHub token required only for private repositories'
34+
required: false
3235

3336
jobs:
3437
authorize-and-resolve-workflow-ref:
@@ -46,6 +49,8 @@ jobs:
4649
with:
4750
repository-name: NordSecurity/trigger-gitlab-pipeline
4851
file-name: trigger-gitlab-pipeline.yml
52+
# Only required for private repositories
53+
github-token: ${{ secrets.github-token }}
4954
outputs:
5055
workflow-ref: ${{ steps.workflow-ref.outputs.sha }}
5156

0 commit comments

Comments
 (0)