File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Warn about PRs from forks via comment
22
33on :
4- pull_request :
4+ pull_request_target :
55 branches :
66 - main
77 types :
88 - opened
9+ - reopened
910
1011jobs :
1112 warn-forks :
1213 runs-on : ubuntu-latest
13- if : github.repository != 'the-turing-way/teams-as-code'
14+ if : github.event.pull_request_target.head.repo.full_name != 'the-turing-way/teams-as-code'
1415 permissions :
1516 issues : write
1617 pull-requests : write
Original file line number Diff line number Diff line change 1616
1717concurrency :
1818 # Only run one tf job at a time to avoid conflicts and state lock
19- group : ${{ github.workflow }}-${{ github.ref }}
19+ group : ${{ github.workflow }}
2020 cancel-in-progress : false
2121
2222jobs :
2323 plan-apply :
24+ runs-on : ubuntu-latest
2425 # Provide GITHUB_TOKEN enough permissions to post a comment to a PR
2526 permissions :
2627 issues : write
2728 pull-requests : write
28- runs-on : ubuntu-latest
29+ # Secrets for this workflow are in an environment with extra restrictions
30+ environment : tf-env
31+
2932 steps :
3033 - name : Checkout repo
3134 uses : actions/checkout@v6
You can’t perform that action at this time.
0 commit comments