Skip to content

Commit

Permalink
Merge pull request #65 from creative-commoners/pulls/main/use-pr-target
Browse files Browse the repository at this point in the history
FIX Use pull_request_target so we have access to secrets
  • Loading branch information
emteknetnz authored Jun 19, 2024
2 parents de6c8c9 + 8550aa1 commit 3580256
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/cms-any/add-prs-to-project.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

$content = <<<'EOT'
name: Add new pull requests to a github project
name: Add new PRs to github project
on:
pull_request:
pull_request_target:
types:
- opened
- ready_for_review
Expand All @@ -13,6 +13,7 @@
jobs:
addprtoproject:
name: Add PR to GitHub Project
# Only run on the silverstripe account
if: github.repository_owner == 'silverstripe'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3580256

Please sign in to comment.