diff --git a/.github/actions/build-image/action.yml b/.github/actions/build-image/action.yml index b82fcfa..5ecb16e 100644 --- a/.github/actions/build-image/action.yml +++ b/.github/actions/build-image/action.yml @@ -3,9 +3,9 @@ inputs: tags: description: "Docker image tags" required: true - secrets: - GITHUB_TOKEN: - required: true + gh-token: + description: "Github token" + required: true runs: using: 'composite' @@ -37,7 +37,7 @@ runs: with: registry: ghcr.io username: sergi0g - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ inputs.gh-token }} - name: Build and push image uses: docker/build-push-action@v6 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 53345ab..bb15cdb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -73,6 +73,7 @@ jobs: with: tags: | ${{ needs.get-tag.outputs.tag }} + gh-token: ${{ secrets.GITHUB_TOKEN }} nightly-release: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4de30ce..5c028da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,8 +72,7 @@ jobs: tags: | ${{ needs.get-tag.outputs.tag }} latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + gh-token: ${{ secrets.GITHUB_TOKEN }} release: runs-on: ubuntu-latest