We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b4429e commit 5a3a481Copy full SHA for 5a3a481
1 file changed
.github/workflows/warden.yml
@@ -5,8 +5,18 @@ on:
5
types: [opened, synchronize, reopened]
6
7
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
+
16
warden:
17
runs-on: ubuntu-latest
18
+ needs: check-permissions
19
+ if: ${{ needs.check-permissions.outputs.HAS_SECRETS == 'true' }}
20
permissions:
21
contents: read
22
id-token: write
0 commit comments