Skip to content

Commit e703574

Browse files
committed
Fix GitHub PR checks
* PR's opened from untrusted forks don't run the `on: push` checks * This changes the behaviour so that they only run on pushes to `main`, and also on all PR branches when authorized to
1 parent 2c4bd7c commit e703574

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Terraform CI
22

3-
on: push
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
47

58
jobs:
69
validate-terraform:

0 commit comments

Comments
 (0)