[fix] Fix Danger CI permissions for PRs from forks (#4449)

It's good to have working and in ASAP, although better approaches are being researched and investigated
This commit is contained in:
Benjamin Lu
2025-07-14 14:08:44 -04:00
committed by GitHub
parent 8b8caa4b29
commit 2f3c762e85

View File

@@ -1,8 +1,14 @@
name: Danger PR Review
on:
pull_request:
pull_request_target:
types: [opened, edited, synchronize]
permissions:
contents: read
issues: write # What Danger needs to comment on PRs
pull-requests: write
statuses: write
jobs:
danger:
runs-on: ubuntu-latest
@@ -10,6 +16,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup Node.js