Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Warn about PRs from forks via comment

on:
pull_request:
pull_request_target:
branches:
- main
types:
- opened
- reopened

jobs:
warn-forks:
runs-on: ubuntu-latest
if: github.repository != 'the-turing-way/teams-as-code'
if: github.event.pull_request_target.head.repo.full_name != 'the-turing-way/teams-as-code'
permissions:
issues: write
pull-requests: write
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/plan-and-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ env:

concurrency:
# Only run one tf job at a time to avoid conflicts and state lock
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
plan-apply:
runs-on: ubuntu-latest
# Provide GITHUB_TOKEN enough permissions to post a comment to a PR
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
# Secrets for this workflow are in an environment with extra restrictions
environment: tf-env

steps:
- name: Checkout repo
uses: actions/checkout@v6
Expand Down
Loading