From c187f757ab2c49f23be8c6afd85d6a9c082e04c8 Mon Sep 17 00:00:00 2001 From: Marius Sincovici Date: Sat, 25 Jan 2025 04:37:27 +0100 Subject: [PATCH] Add gitlab token for private repos Signed-off-by: Marius Sincovici Signed-off-by: Marius Sincovici --- .github/workflows/trigger-gitlab-pipeline.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/trigger-gitlab-pipeline.yml b/.github/workflows/trigger-gitlab-pipeline.yml index ba324f6..dd1bbf1 100644 --- a/.github/workflows/trigger-gitlab-pipeline.yml +++ b/.github/workflows/trigger-gitlab-pipeline.yml @@ -29,6 +29,9 @@ on: project-id: description: 'GitLab project ID' required: true + github-token: + description: 'GitHub token required only for private repositories' + required: false jobs: authorize-and-resolve-workflow-ref: @@ -46,6 +49,8 @@ jobs: with: repository-name: NordSecurity/trigger-gitlab-pipeline file-name: trigger-gitlab-pipeline.yml + # Only required for private repositories + github-token: ${{ secrets.github-token }} outputs: workflow-ref: ${{ steps.workflow-ref.outputs.sha }}