Revert "[fix] Fix Danger CI permissions for PRs from forks" #22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Danger PR Review | |
on: | |
pull_request: | |
types: [opened, edited, synchronize] | |
jobs: | |
danger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Danger | |
run: npx danger ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |