Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ name: Add to project board
on:
issues:
types: [opened, reopened, transferred]
# pull_request_target (not pull_request) so PRs from forks can read the secret.
# Safe here: this workflow never checks out or runs the PR's code.
pull_request_target:
pull_request:
types: [opened, reopened]

permissions: {}

jobs:
add-to-project:
# PRs from forks and from Dependabot don't get the secret, so skip them.
if: >-
github.event_name == 'issues' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]')
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.2
Expand Down
Loading