From c786790b0f031dede3cc432763562f71eeea97eb Mon Sep 17 00:00:00 2001 From: ThePedroo Date: Mon, 9 Jun 2025 22:59:44 -0300 Subject: [PATCH] fix: Trusted CI failing in forks This commit fixes issue that due to the lack of private and private key in forks, the Trusted CI ends up failing. --- .github/workflows/trusted_ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trusted_ci.yml b/.github/workflows/trusted_ci.yml index c2c847e..47d8bc8 100644 --- a/.github/workflows/trusted_ci.yml +++ b/.github/workflows/trusted_ci.yml @@ -28,8 +28,12 @@ jobs: private_key: ${{ secrets.ORG_PRIVATE_KEY }} public_key: ${{ secrets.ORG_PUBLIC_KEY }} run: | - echo "$private_key" | base64 -d > module/private_key - echo "$public_key" | base64 -d > module/public_key + if [ -z "$private_key" ] || [ -z "$public_key" ]; then + echo "Private or public key is not set." + else + echo "$private_key" | base64 -d > module/private_key + echo "$public_key" | base64 -d > module/public_key + fi - name: Build with Gradle run: |