diff --git a/.github/workflows/build-product.yml b/.github/workflows/build-product.yml index cdd3757a..2455dd24 100644 --- a/.github/workflows/build-product.yml +++ b/.github/workflows/build-product.yml @@ -15,7 +15,7 @@ on: required: false GITLAB_HOST: required: false - TOKEN: + CHECKOUT_TOKEN: required: false description: Token to pass to the build-single and build-workspace jobs. Use this to allow the checkout actions to access private repositories. diff --git a/.github/workflows/build-single-product-part.yml b/.github/workflows/build-single-product-part.yml index 9810a255..5de4039c 100644 --- a/.github/workflows/build-single-product-part.yml +++ b/.github/workflows/build-single-product-part.yml @@ -17,7 +17,7 @@ on: required: false GITLAB_HOST: required: false - TOKEN: + CHECKOUT_TOKEN: required: false description: "token to use for the checkout actions to access private repositories" inputs: @@ -61,7 +61,7 @@ jobs: # checkout specific repository - uses: actions/checkout@v3 with: - token: ${{ secrets.TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} + token: ${{ secrets.CHECKOUT_TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} # checkout this workflow repository to get actions - uses: actions/checkout@v3 with: @@ -124,7 +124,7 @@ jobs: git config --global url."git+https://$GITLAB_TOKEN@$GITLAB_HOST/".insteadOf "git+ssh://git@$GITLAB_HOST:" fi env: - _GITHUB_TOKEN: ${{ secrets.TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} + _GITHUB_TOKEN: ${{ secrets.CHECKOUT_TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} GITLAB_HOST: ${{ secrets.GITLAB_HOST }} - name: Git clone app @@ -144,7 +144,7 @@ jobs: REPO: ${{ steps.get-parameters.outputs.repo }} BRANCH: ${{ steps.get-parameters.outputs.branch }} APP: ${{ steps.get-parameters.outputs.app }} - GH_TOKEN: ${{ secrets.TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.CHECKOUT_TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} GITLAB_HOST: ${{ secrets.GITLAB_HOST }} - name: Copy docker sources