Skip to content
Merged
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
31 changes: 3 additions & 28 deletions .github/workflows/gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,16 @@ on:
branches:
- main
pull_request:
pull_request_target:
workflow_dispatch:

permissions:
contents: read

jobs:
# Internal PRs and pushes: run directly with secrets available.
gitlab-ci-internal:
if: >
github.event_name != 'pull_request_target' &&
(
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
)
runs-on: ubuntu-latest
steps:
- name: Check GitLab CI
uses: pulp-platform/pulp-actions/gitlab-ci@v1
with:
domain: iis-git.ee.ethz.ch
repo: github-mirror/magia
token: ${{ secrets.GITLAB_TOKEN }}
poll-count: 2160

# Fork PRs: require maintainer approval before secrets are exposed.
gitlab-ci-external:
if: >
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
gitlab-ci:
runs-on: ubuntu-latest
environment: external-prs
steps:
- name: Check GitLab CI
uses: pulp-platform/pulp-actions/gitlab-ci@v1
# Skip on forks or pull requests from forks due to missing secrets.
if: github.repository == 'pulp-platform/MAGIA' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
with:
domain: iis-git.ee.ethz.ch
repo: github-mirror/magia
Expand Down
Loading