From c647203ebc5daee4f3c14cb3120add5b4c3b43dc Mon Sep 17 00:00:00 2001 From: Ryszard Knop Date: Wed, 29 Apr 2026 02:58:09 +0200 Subject: [PATCH] fix(warden): Disable Warden if secrets are not available For contributors outside the getsentry org, secrets are not available, which causes this job to fail. Disable it for now. --- .github/workflows/warden.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/warden.yml b/.github/workflows/warden.yml index 455aaf4..c75b38e 100644 --- a/.github/workflows/warden.yml +++ b/.github/workflows/warden.yml @@ -5,8 +5,18 @@ on: types: [opened, synchronize, reopened] jobs: + check-permissions: + runs-on: ubuntu-latest + outputs: + HAS_SECRETS: ${{ steps.check.outputs.HAS_SECRETS }} + steps: + - run: echo "HAS_SECRETS=${{ secrets.WARDEN_PRIVATE_KEY != '' }}" >> "$GITHUB_OUTPUT" + id: check + warden: runs-on: ubuntu-latest + needs: check-permissions + if: ${{ needs.check-permissions.outputs.HAS_SECRETS == 'true' }} permissions: contents: read id-token: write