From e64a57cbdc46dc5c92444a276ce6e6933f035056 Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Sat, 31 May 2025 14:36:10 +0200 Subject: [PATCH] Fallback to default GITHUB_TOKEN, if REGISTRY_TOKEN does not exist --- .github/workflows/apps.yml | 5 ++++- .github/workflows/base.yml | 5 ++++- .github/workflows/bot.yml | 7 +++++-- .github/workflows/box64.yml | 5 ++++- .github/workflows/bun.yml | 5 ++++- .github/workflows/cassandra.yml | 5 ++++- .github/workflows/dart.yml | 5 ++++- .github/workflows/dotnet.yml | 5 ++++- .github/workflows/elixir.yml | 5 ++++- .github/workflows/erlang.yml | 5 ++++- .github/workflows/games.yml | 7 +++++-- .github/workflows/go.yml | 5 ++++- .github/workflows/installers.yml | 5 ++++- .github/workflows/java.yml | 5 ++++- .github/workflows/mariadb.yml | 5 ++++- .github/workflows/mongodb.yml | 5 ++++- .github/workflows/mono.yml | 5 ++++- .github/workflows/nodejs.yml | 5 ++++- .github/workflows/postgres.yml | 5 ++++- .github/workflows/python.yml | 5 ++++- .github/workflows/redis.yml | 5 ++++- .github/workflows/rust.yml | 5 ++++- .github/workflows/steamcmd.yml | 5 ++++- .github/workflows/voice.yml | 7 +++++-- .github/workflows/wine.yml | 5 ++++- 25 files changed, 103 insertions(+), 28 deletions(-) diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml index d1899ca..24241e1 100644 --- a/.github/workflows/apps.yml +++ b/.github/workflows/apps.yml @@ -8,6 +8,9 @@ on: - master paths: - apps/** +permissions: + packages: write + jobs: push: name: "yolks:apps_${{ matrix.app }}" @@ -30,7 +33,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index 7ae5e93..c521a7f 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -8,6 +8,9 @@ on: - master paths: - oses/** +permissions: + packages: write + jobs: push: name: "yolks:${{ matrix.oses }}" @@ -29,7 +32,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./oses/${{ matrix.oses }} diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 7ecc1fb..00c550e 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -8,6 +8,9 @@ on: - master paths: - bot/** +permissions: + packages: write + jobs: pushArm: name: "yolks:bot_${{ matrix.tag }}" @@ -40,7 +43,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./bot/${{ matrix.tag }} @@ -75,7 +78,7 @@ jobs: # with: # registry: ghcr.io # username: ${{ github.repository_owner }} - # password: ${{ secrets.REGISTRY_TOKEN }} + # password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} # - uses: docker/build-push-action@v6 # with: # context: ./bot/${{ matrix.tag }} diff --git a/.github/workflows/box64.yml b/.github/workflows/box64.yml index 6939a65..acc75b0 100644 --- a/.github/workflows/box64.yml +++ b/.github/workflows/box64.yml @@ -8,6 +8,9 @@ on: - master paths: - box64/** +permissions: + packages: write + jobs: push: name: "yolks:${{ matrix.tag }}" @@ -27,7 +30,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./box64 diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml index 4e52d50..a031cd6 100644 --- a/.github/workflows/bun.yml +++ b/.github/workflows/bun.yml @@ -8,6 +8,9 @@ on: - master paths: - bun/** +permissions: + packages: write + jobs: push: name: "yolks:bun_${{ matrix.tag }}" @@ -28,7 +31,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./bun diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index 308d5b8..d78e009 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -8,6 +8,9 @@ on: - master paths: - cassandra/** +permissions: + packages: write + jobs: push: name: "yolks:cassandra_${{ matrix.tag }}" @@ -27,7 +30,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./cassandra diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index deb3e1a..86a5a99 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -8,6 +8,9 @@ on: - master paths: - dart/** +permissions: + packages: write + jobs: push: name: "yolks:dart_${{ matrix.tag }}" @@ -32,7 +35,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./dart diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a4d2660..a93ffdf 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,9 @@ on: - master paths: - dotnet/** +permissions: + packages: write + jobs: push: name: "yolks:dotnet_${{ matrix.tag }}" @@ -34,7 +37,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./dotnet diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 23fd08b..bf71f78 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -8,6 +8,9 @@ on: - master paths: - elixir/** +permissions: + packages: write + jobs: push: name: "yolks:elixir_${{ matrix.tag }}" @@ -31,7 +34,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./elixir diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index a092ff0..507d0fe 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -8,6 +8,9 @@ on: - master paths: - erlang/** +permissions: + packages: write + jobs: push: name: "yolks:erlang_${{ matrix.tag }}" @@ -30,7 +33,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./erlang diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 6d8df1a..8817b76 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -8,6 +8,9 @@ on: - master paths: - games/** +permissions: + packages: write + jobs: pushAMD64: name: "games_AMD64:${{ matrix.game }}" @@ -35,7 +38,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./games/${{ matrix.game }} @@ -67,7 +70,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./games/${{ matrix.game }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 810398a..7bad5ce 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,6 +8,9 @@ on: - master paths: - go/** +permissions: + packages: write + jobs: push: name: "yolks:go_${{ matrix.tag }}" @@ -35,7 +38,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./go diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 7fcd2f4..17ed27e 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -8,6 +8,9 @@ on: - master paths: - installers/** +permissions: + packages: write + jobs: push: name: "installers:{{ matrix.tag }}" @@ -29,7 +32,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./installers diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index ff1a557..6a89e46 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -8,6 +8,9 @@ on: - master paths: - java/** +permissions: + packages: write + jobs: push: name: "yolks:java_${{ matrix.tag }}" @@ -36,7 +39,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./java diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index 418be2f..8430640 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -9,6 +9,9 @@ on: - master paths: - mariadb/** +permissions: + packages: write + jobs: push: name: "yolks:mariadb_${{ matrix.tag }}" @@ -37,7 +40,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./mariadb diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 5e61a4b..8bae1ee 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -9,6 +9,9 @@ on: - master paths: - mongodb/** +permissions: + packages: write + jobs: push: name: "yolks:mongodb_${{ matrix.tag }}" @@ -31,7 +34,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./mongodb diff --git a/.github/workflows/mono.yml b/.github/workflows/mono.yml index d375bcd..2db7960 100644 --- a/.github/workflows/mono.yml +++ b/.github/workflows/mono.yml @@ -8,6 +8,9 @@ on: - master paths: - mono/** +permissions: + packages: write + jobs: push: name: "yolks:mono_${{ matrix.tag }}" @@ -26,7 +29,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./mono diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b69b7ec..5510bb3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -8,6 +8,9 @@ on: - master paths: - nodejs/** +permissions: + packages: write + jobs: push: name: "yolks:nodejs_${{ matrix.tag }}" @@ -38,7 +41,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./nodejs diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index 696e422..1f8cae8 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -9,6 +9,9 @@ on: - master paths: - postgres/** +permissions: + packages: write + jobs: push: name: "yolks:postgres_${{ matrix.tag }}" @@ -34,7 +37,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./postgres diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 26dd659..b455cfe 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -8,6 +8,9 @@ on: - master paths: - python/** +permissions: + packages: write + jobs: push: name: "yolks:python_${{ matrix.tag }}" @@ -35,7 +38,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./python diff --git a/.github/workflows/redis.yml b/.github/workflows/redis.yml index ff2d1e1..7730cfd 100644 --- a/.github/workflows/redis.yml +++ b/.github/workflows/redis.yml @@ -9,6 +9,9 @@ on: - master paths: - redis/** +permissions: + packages: write + jobs: push: name: "yolks:redis_${{ matrix.tag }}" @@ -30,7 +33,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./redis diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ee31c23..e1f1e0f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,6 +8,9 @@ on: - master paths: - rust/** +permissions: + packages: write + jobs: push: name: "yolks:rust_${{ matrix.tag }}" @@ -30,7 +33,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./rust diff --git a/.github/workflows/steamcmd.yml b/.github/workflows/steamcmd.yml index a8fad37..24e10a3 100644 --- a/.github/workflows/steamcmd.yml +++ b/.github/workflows/steamcmd.yml @@ -8,6 +8,9 @@ on: - master paths: - steamcmd/** +permissions: + packages: write + jobs: push: name: "steamcmd:${{ matrix.distro }}" @@ -31,7 +34,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./steamcmd diff --git a/.github/workflows/voice.yml b/.github/workflows/voice.yml index 0e06d67..75f20f3 100644 --- a/.github/workflows/voice.yml +++ b/.github/workflows/voice.yml @@ -8,6 +8,9 @@ on: - master paths: - voice/** +permissions: + packages: write + jobs: pushx64: name: "yolks:voice_${{ matrix.tag }}" @@ -26,7 +29,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./voice/${{ matrix.tag }} @@ -58,7 +61,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./voice/${{ matrix.tag }} diff --git a/.github/workflows/wine.yml b/.github/workflows/wine.yml index dbeb691..2187a2f 100644 --- a/.github/workflows/wine.yml +++ b/.github/workflows/wine.yml @@ -8,6 +8,9 @@ on: - master paths: - wine/** +permissions: + packages: write + jobs: push: name: "yolks:wine_${{ matrix.tag }}" @@ -32,7 +35,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./wine