diff --git a/.github/workflows/build-production.yml b/.github/workflows/build-production.yml index 8fe21ea..fae6a57 100644 --- a/.github/workflows/build-production.yml +++ b/.github/workflows/build-production.yml @@ -21,7 +21,8 @@ on: type: string secrets: GH_PACKAGE_READ_TOKEN: - required: true + required: false + default: "" jobs: build_production: @@ -68,6 +69,7 @@ jobs: file: ${{ inputs.dockerfile }} secrets: | "gh_package_read_token=${{ secrets.GH_PACKAGE_READ_TOKEN }}" + "github_token=${{ secrets.GITHUB_TOKEN }}" push: true tags: | ghcr.io/mlibrary/${{ inputs.image_name }}:latest diff --git a/.github/workflows/build-unstable.yml b/.github/workflows/build-unstable.yml index a81dc77..32e98b6 100644 --- a/.github/workflows/build-unstable.yml +++ b/.github/workflows/build-unstable.yml @@ -21,7 +21,8 @@ on: type: string secrets: GH_PACKAGE_READ_TOKEN: - required: true + required: false + default: "" outputs: sha: description: "github commit hash that corressponds to the tag" @@ -89,6 +90,7 @@ jobs: file: ${{ inputs.dockerfile }} secrets: | "gh_package_read_token=${{ secrets.GH_PACKAGE_READ_TOKEN }}" + "github_token=${{ secrets.GITHUB_TOKEN }}" push: true tags: | ghcr.io/mlibrary/${{ inputs.image_name }}-unstable:latest