Skip to content

Commit

Permalink
Rename to CHECKOUT_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Dec 12, 2023
1 parent 4fca427 commit acc8da0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-single-product-part.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit acc8da0

Please sign in to comment.