Skip to content

Commit 6bba6c8

Browse files
devlux76Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 21ab755 commit 6bba6c8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/project-board-automation.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ jobs:
2929
name: Add to project board
3030
runs-on: ubuntu-latest
3131
permissions: {}
32-
# Skip entirely if the repository variable has not been configured yet
33-
if: vars.PROJECT_URL != ''
32+
# Skip entirely if the repository variable or token have not been configured,
33+
# or if this is a pull request from a fork (no secrets available).
34+
if: vars.PROJECT_URL != '' &&
35+
secrets.PROJECT_TOKEN != '' &&
36+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
3437
steps:
3538
- name: Add issue or PR to project board
3639
uses: actions/add-to-project@v1.0.2

0 commit comments

Comments
 (0)