mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
ci(danger-github): Fix github-action-bot permissions for posting Danger output
This commit is contained in:
parent
623c4e653a
commit
5295b51fcd
17
.github/workflows/dangerjs.yml
vendored
17
.github/workflows/dangerjs.yml
vendored
@ -1,20 +1,12 @@
|
|||||||
name: DangerJS Pull Request review
|
name: DangerJS Pull Request review
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
types: [opened, edited, reopened, synchronize]
|
types: [opened, edited, reopened, synchronize]
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: read
|
|
||||||
checks: read
|
|
||||||
contents: read
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
security-events: read
|
contents: write
|
||||||
statuses: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
danger-check:
|
danger-check:
|
||||||
@ -23,7 +15,10 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: .github/dangerjs
|
working-directory: .github/dangerjs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Check out PR head
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Setup NodeJS environment
|
- name: Setup NodeJS environment
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user