Skip to content

Commit 5a3a481

Browse files
fix(warden): Disable Warden if secrets are not available (#178)
For contributors outside the getsentry org, secrets are not available, which causes this job to fail. Disable it for now.
1 parent 3b4429e commit 5a3a481

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/warden.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ on:
55
types: [opened, synchronize, reopened]
66

77
jobs:
8+
check-permissions:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
HAS_SECRETS: ${{ steps.check.outputs.HAS_SECRETS }}
12+
steps:
13+
- run: echo "HAS_SECRETS=${{ secrets.WARDEN_PRIVATE_KEY != '' }}" >> "$GITHUB_OUTPUT"
14+
id: check
15+
816
warden:
917
runs-on: ubuntu-latest
18+
needs: check-permissions
19+
if: ${{ needs.check-permissions.outputs.HAS_SECRETS == 'true' }}
1020
permissions:
1121
contents: read
1222
id-token: write

0 commit comments

Comments
 (0)