diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 6d2e394..5092613 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -134,7 +134,7 @@ jobs: egress-policy: audit - name: Generate GitHub App token - if: inputs.source_repo != '' && inputs.source_repo != github.repository + if: inputs.source_repo != '' && inputs.source_repo != github.repository && secrets.source_token == '' id: app-token uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 with: @@ -147,7 +147,7 @@ jobs: with: repository: ${{ inputs.source_repo || github.repository }} ref: ${{ inputs.source_ref || github.sha }} - token: ${{ steps.app-token.outputs.token || secrets.source_token || github.token }} + token: ${{ secrets.source_token || steps.app-token.outputs.token || github.token }} submodules: recursive - name: Set up Docker Buildx