Skip to content

Commit 4a0c02a

Browse files
sserrataclaude
andauthored
fix(ci): route dependabot through gated analyze_unsafe path (#1333)
Explicitly check for dependabot[bot] actor and set is-org-member-result to false so Dependabot PRs flow through the analyze_unsafe job with the environment approval gate rather than failing the Precheck step entirely. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1ab3be2 commit 4a0c02a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- name: Check if actor is org member
1818
id: is-org-member
1919
run: |
20+
if [ "${{ github.actor }}" = "dependabot[bot]" ]; then
21+
echo "is-org-member-result=false" >> "$GITHUB_OUTPUT"
22+
exit 0
23+
fi
2024
status=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $GH_TOKEN" \
2125
https://api.github.com/orgs/PaloAltoNetworks/members/${{ github.actor }})
2226
if [ "$status" = "204" ]; then

0 commit comments

Comments
 (0)