diff --git a/.github/actions/docker/deploy/action.yml b/.github/actions/docker/deploy/action.yml index 24674e0e..df89923d 100644 --- a/.github/actions/docker/deploy/action.yml +++ b/.github/actions/docker/deploy/action.yml @@ -14,6 +14,9 @@ inputs: required: false type: string default: '' + GITHUB_TOKEN: + required: true + type: string runs: using: composite @@ -24,7 +27,7 @@ runs: with: registry: ${{ inputs.REGISTRY_URL }} username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ inputs.GITHUB_TOKEN }} - name: Pull docker images shell: 'bash' run: docker-compose --project-name ${{ inputs.PROJECT_NAME }} -f ${{ inputs.DOCKER_COMPOSE_PATH }} ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }} pull diff --git a/.github/workflows/docker-step-deploy.yml b/.github/workflows/docker-step-deploy.yml index 378a56d0..e6cd73bd 100644 --- a/.github/workflows/docker-step-deploy.yml +++ b/.github/workflows/docker-step-deploy.yml @@ -64,6 +64,7 @@ jobs: PROJECT_NAME: ${{ inputs.PROJECT_NAME }} DOCKER_COMPOSE_PATH: ${{ inputs.DOCKER_COMPOSE_PATH }} DOCKER_COMPOSE_EXTRA_ARGS: ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} deploy-without-runner-group: if: ${{ inputs.RUNNERS_CONTAINER_GROUP == '' }} @@ -88,3 +89,4 @@ jobs: PROJECT_NAME: ${{ inputs.PROJECT_NAME }} DOCKER_COMPOSE_PATH: ${{ inputs.DOCKER_COMPOSE_PATH }} DOCKER_COMPOSE_EXTRA_ARGS: ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}