diff --git a/.github/workflows/solus-eopkg-build.yml b/.github/workflows/solus-eopkg-build.yml index d2cfc1b5..780c9072 100644 --- a/.github/workflows/solus-eopkg-build.yml +++ b/.github/workflows/solus-eopkg-build.yml @@ -16,6 +16,10 @@ on: - main - master +permissions: + contents: read + packages: read + jobs: build-eopkg: runs-on: ubuntu-latest @@ -26,6 +30,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Log in to GHCR (for ghcr.io images) + if: startsWith(env.SOLUS_IMAGE, 'ghcr.io/') + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + - name: Build eopkg package in Solus container run: | if [ ! -f "$PACKAGE_YML" ]; then