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
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true

- name: Lint OpenAPI Specification
run: npx -y @redocly/cli lint --config doc/redocly.yaml doc/openapi/openapi.yaml
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true

- name: Add Git safe Directory
run: git config --global --add safe.directory '*'
Expand All @@ -76,6 +78,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true

- name: REUSE Compliance Check
uses: fsfe/reuse-action@v6
23 changes: 18 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
setup:
name: Setup Variables
# Forks get a read-only GITHUB_TOKEN, so they run via pull_request_target.
if: >-
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork
|| github.event_name != 'pull_request_target' && !github.event.pull_request.head.repo.fork
github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
|| github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository
|| github.event_name == 'pull_request_target'
&& github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'pull_request_target' && 'fork-pr' || 'internal' }}
outputs:
Expand Down Expand Up @@ -139,7 +142,16 @@ jobs:
is_version_tag: ${{ startsWith(github.ref, 'refs/tags/v') }}

all:
name: All prerequisites completed
# Only the real run may claim the required check name. Mirrors setup.
name: >-
${{ (github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
|| github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository
|| github.event_name == 'pull_request_target'
&& github.event.pull_request.head.repo.full_name != github.repository)
&& 'All prerequisites completed' || 'CI not applicable' }}
# A skipped required check counts as passing.
if: always()
needs:
- setup
- checks
Expand All @@ -155,7 +167,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Dependency barrier
run: echo "All prerequisite jobs finished."
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

tag-minor-release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/packaging-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -68,7 +69,7 @@ jobs:
cache-from: |
type=gha,scope=dev-debian
type=gha,scope=app-x86_64
cache-to: type=gha,mode=max,scope=app-x86_64
cache-to: ${{ github.event_name != 'pull_request_target' && 'type=gha,mode=max,scope=app-x86_64' || '' }}
build-args: |
ARCH=x86_64
TRIPLET=x86_64-linux-gnu
Expand All @@ -83,6 +84,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
pull: true
platforms: linux/arm64
cache-from: type=gha,scope=app-arm64
cache-to: type=gha,mode=max,scope=app-arm64
cache-to: ${{ github.event_name != 'pull_request_target' && 'type=gha,mode=max,scope=app-arm64' || '' }}
build-args: |
ARCH=arm64
TRIPLET=aarch64-linux-gnu
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/packaging-nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -77,6 +78,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -117,6 +119,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/paper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true

- name: Build Draft PDF
uses: openjournals/openjournals-draft-action@v1.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -87,7 +88,7 @@ jobs:
target: ${{ matrix.target || 'dev' }}
push: true
cache-from: type=gha,scope=dev-${{ matrix.image_name }}
cache-to: type=gha,mode=max,scope=dev-${{ matrix.image_name }}
cache-to: ${{ github.event_name != 'pull_request_target' && format('type=gha,mode=max,scope=dev-{0}', matrix.image_name) || '' }}
tags: |
${{ env.DOCKER_IMAGE }}/dev-${{ matrix.image_name }}:${{ env.DOCKER_TAG }}
${{ env.DOCKER_IMAGE }}/dev-${{ matrix.image_name }}:${{ steps.ref.outputs.tag }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand All @@ -94,6 +96,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down Expand Up @@ -132,6 +135,7 @@ jobs:
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
submodules: recursive

Expand Down
Loading