Skip to content

Commit d4eb6a2

Browse files
Trigger the project board workflow on pull_request (#692)
1 parent fcff9cf commit d4eb6a2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/add-to-project.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ name: Add to project board
33
on:
44
issues:
55
types: [opened, reopened, transferred]
6-
# pull_request_target (not pull_request) so PRs from forks can read the secret.
7-
# Safe here: this workflow never checks out or runs the PR's code.
8-
pull_request_target:
6+
pull_request:
97
types: [opened, reopened]
108

119
permissions: {}
1210

1311
jobs:
1412
add-to-project:
13+
# PRs from forks and from Dependabot don't get the secret, so skip them.
14+
if: >-
15+
github.event_name == 'issues' ||
16+
(github.event.pull_request.head.repo.full_name == github.repository &&
17+
github.actor != 'dependabot[bot]')
1518
runs-on: ubuntu-latest
1619
steps:
1720
- uses: actions/add-to-project@v2.0.1

0 commit comments

Comments
 (0)