Skip to content

Commit 35c1650

Browse files
committed
Use pull_request_target
1 parent c9955c9 commit 35c1650

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/gitlab-ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
name: gitlab-ci
77
# Skip on pull requests as forks don't have required secrets,
88
# and pull requests from own repo already trigger a push event.
9-
on: [push, workflow_dispatch]
9+
on: [push, pull_request]
1010
jobs:
1111
gitlab-ci:
1212
name: Internal Gitlab CI
1313
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Check Gitlab CI
16-
uses: pulp-platform/pulp-actions/gitlab-ci@v2.1.0
16+
uses: pulp-platform/pulp-actions/gitlab-ci@v2.4.1
1717
# Skip on forks due to missing secrets.
1818
if: >
19-
github.repository == 'pulp-platform/snitch_cluster'
19+
github.repository == 'pulp-platform/snitch_cluster' &&
20+
(github.event_name != 'pull_request' ||
21+
github.event.pull_request.head.repo.full_name != github.repository)
2022
with:
2123
domain: iis-git.ee.ethz.ch
2224
repo: github-mirror/snitch_cluster

0 commit comments

Comments
 (0)