Skip to content

Commit 179c8bd

Browse files
Merge pull request #1748 from cfengine/ENT-13038/master
Restrict workflow runs to cfengine organization pull requests
2 parents 33d23ae + f5a9ef4 commit 179c8bd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Continuous Integration
22

3-
# Run this CI on all pushes to upstream
4-
# (including PRs from upstream to upstream)
5-
on: push
3+
on: pull_request
4+
permissions: read-all
65

76
jobs:
87
build_cfengine_hub_package:
8+
# this job only works when submitted from the cfengine organization aka upstream to upstream pull requests: ENT-13038
9+
if: github.event.organization.login == 'cfengine'
910
uses: ./.github/workflows/build-using-buildscripts.yml
1011
secrets: inherit
1112

0 commit comments

Comments
 (0)