Skip to content

Commit

Permalink
build: use pull_request_target in actions workflow (#476)
Browse files Browse the repository at this point in the history
Coverage uploads require access to a repository secret, which isn't
accessible to pull requests from forks with the `pull_request` event.

Refs: https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/#improvements-for-public-repository-forks
  • Loading branch information
richardlau authored Oct 26, 2020
1 parent 7f4dc03 commit 814cd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs-ci-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
pull_request_target:
branches: [ master ]

jobs:
Expand Down

0 comments on commit 814cd4f

Please sign in to comment.