Skip to content

Commit

Permalink
[CI] Use pull_request_target for coverage trigger (#990)
Browse files Browse the repository at this point in the history
Purely CI PR: use `pull_request_target` with custom permission to ensure external PRs can still trigger the coverage script.
  • Loading branch information
hugsy authored Aug 16, 2023
1 parent 371f273 commit 67c363d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: CI Coverage for PR

on:
pull_request:
on: [ pull_request, pull_request_target ]

jobs:
coverage:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 67c363d

Please sign in to comment.