diff --git a/.github/workflows/autocheckers.yml b/.github/workflows/autocheckers.yml index 7342812fec11e..737e1dbbb834b 100644 --- a/.github/workflows/autocheckers.yml +++ b/.github/workflows/autocheckers.yml @@ -14,7 +14,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} outputs: src: ${{ steps.changes.outputs.src }} @@ -39,7 +39,7 @@ jobs: - build/autoloaderchecker.sh autoloader: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -72,7 +72,7 @@ jobs: run: bash ./build/autoloaderchecker.sh autocheckers: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -119,7 +119,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, autoloader, autocheckers] if: always() diff --git a/.github/workflows/block-merge-eol.yml b/.github/workflows/block-merge-eol.yml index ab04945680864..31f870b54c907 100644 --- a/.github/workflows/block-merge-eol.yml +++ b/.github/workflows/block-merge-eol.yml @@ -23,7 +23,7 @@ jobs: # Only run on stableXX branches if: startsWith( github.base_ref, 'stable') - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Set server major version environment diff --git a/.github/workflows/block-merge-freeze.yml b/.github/workflows/block-merge-freeze.yml index 3a9d5cc37836c..ac2423fbf59d2 100644 --- a/.github/workflows/block-merge-freeze.yml +++ b/.github/workflows/block-merge-freeze.yml @@ -25,7 +25,7 @@ jobs: if: github.event.pull_request.draft == false - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Register server reference to fallback to master branch diff --git a/.github/workflows/block-outdated-3rdparty.yml b/.github/workflows/block-outdated-3rdparty.yml index 472809d8d1cb5..529fd37d52c72 100644 --- a/.github/workflows/block-outdated-3rdparty.yml +++ b/.github/workflows/block-outdated-3rdparty.yml @@ -17,7 +17,7 @@ jobs: block-outdated-3rdparty: name: Block merging with outdated 3rdparty/ - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Check requirement diff --git a/.github/workflows/block-unconventional-commits.yml b/.github/workflows/block-unconventional-commits.yml index 258951e8e5b9e..c85aca028a154 100644 --- a/.github/workflows/block-unconventional-commits.yml +++ b/.github/workflows/block-unconventional-commits.yml @@ -23,7 +23,7 @@ jobs: block-unconventional-commits: name: Block unconventional commits - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Checkout diff --git a/.github/workflows/bug-report-labeler.yml b/.github/workflows/bug-report-labeler.yml index 369f95b7947fa..986817c88307a 100644 --- a/.github/workflows/bug-report-labeler.yml +++ b/.github/workflows/bug-report-labeler.yml @@ -9,7 +9,7 @@ on: jobs: add-version-label: if: contains(github.event.issue.title, '[Bug]') - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} permissions: issues: write steps: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 232743ef4e0db..60dd5c0bf240b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,11 +14,12 @@ on: jobs: analyze: name: Analyze (${{ matrix.language }}) - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} permissions: + # required to fetch on gmbh + contents: read # required for all workflows security-events: write - # required to fetch internal or private CodeQL packs packages: read diff --git a/.github/workflows/command-compile.yml b/.github/workflows/command-compile.yml index 9d6fc2790d734..b12d6a0c3b080 100644 --- a/.github/workflows/command-compile.yml +++ b/.github/workflows/command-compile.yml @@ -16,7 +16,7 @@ permissions: jobs: init: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} # On pull requests and if the comment starts with `/compile` if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/compile') @@ -92,7 +92,7 @@ jobs: reactions: '-1' process: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: init steps: diff --git a/.github/workflows/command-pull-3rdparty.yml b/.github/workflows/command-pull-3rdparty.yml index e0e6480dd013b..b0768eb5558af 100644 --- a/.github/workflows/command-pull-3rdparty.yml +++ b/.github/workflows/command-pull-3rdparty.yml @@ -11,7 +11,7 @@ permissions: jobs: rebase: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} permissions: contents: none pull-requests: read diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml index ea03208d028d5..483f64834fb03 100644 --- a/.github/workflows/dependabot-approve-merge.yml +++ b/.github/workflows/dependabot-approve-merge.yml @@ -25,7 +25,7 @@ concurrency: jobs: auto-approve-merge: if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]' - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: # for hmarr/auto-approve-action to approve PRs pull-requests: write diff --git a/.github/workflows/files-external.yml b/.github/workflows/files-external.yml index 11587ed974de1..8ef0c9776cd23 100644 --- a/.github/workflows/files-external.yml +++ b/.github/workflows/files-external.yml @@ -9,7 +9,7 @@ permissions: jobs: files-external: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} @@ -184,7 +184,7 @@ jobs: docker ps -aq | while read container ; do IMAGE=$(docker inspect --format='{{.Config.Image}}' $container); echo $IMAGE; docker logs $container; echo "\n\n" ; done files-external-smb-kerberos: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} diff --git a/.github/workflows/fixup.yml b/.github/workflows/fixup.yml index 69da2bbb039f2..c9c062b992de3 100644 --- a/.github/workflows/fixup.yml +++ b/.github/workflows/fixup.yml @@ -27,7 +27,7 @@ jobs: pull-requests: write name: Block fixup and squash commits - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Run check diff --git a/.github/workflows/integration-dav.yml b/.github/workflows/integration-dav.yml index 88ce87def0b95..a1f8f93e49caa 100644 --- a/.github/workflows/integration-dav.yml +++ b/.github/workflows/integration-dav.yml @@ -13,7 +13,10 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} + permissions: + contents: read + pull-requests: read outputs: src: ${{ steps.changes.outputs.src}} @@ -37,7 +40,7 @@ jobs: - 'composer.lock' integration-caldav: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' && github.repository_owner != 'nextcloud-gmbh' @@ -118,7 +121,7 @@ jobs: caldav-integration-summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, integration-caldav] if: always() diff --git a/.github/workflows/integration-litmus.yml b/.github/workflows/integration-litmus.yml index 097b83304713a..cd2df69ba9954 100644 --- a/.github/workflows/integration-litmus.yml +++ b/.github/workflows/integration-litmus.yml @@ -13,7 +13,10 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} + permissions: + contents: read + pull-requests: read outputs: src: ${{ steps.changes.outputs.src}} @@ -37,7 +40,7 @@ jobs: - 'composer.lock' integration-litmus: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' && github.repository_owner != 'nextcloud-gmbh' @@ -106,7 +109,7 @@ jobs: integration-litmus-summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, integration-litmus] if: always() diff --git a/.github/workflows/integration-s3-primary.yml b/.github/workflows/integration-s3-primary.yml index 6d38f377800b6..b3a016d07cf4d 100644 --- a/.github/workflows/integration-s3-primary.yml +++ b/.github/workflows/integration-s3-primary.yml @@ -9,7 +9,7 @@ permissions: jobs: integration-s3-primary: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: github.repository_owner != 'nextcloud-gmbh' diff --git a/.github/workflows/integration-sqlite.yml b/.github/workflows/integration-sqlite.yml index b00285d6b4a3e..2e99863cadc1b 100644 --- a/.github/workflows/integration-sqlite.yml +++ b/.github/workflows/integration-sqlite.yml @@ -19,7 +19,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} outputs: src: ${{ steps.changes.outputs.src}} @@ -44,7 +44,7 @@ jobs: - 'core/shipped.json' integration-sqlite: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -185,7 +185,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, integration-sqlite] if: always() diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml index e82aa20df999b..081f43f1bd052 100644 --- a/.github/workflows/lint-eslint.yml +++ b/.github/workflows/lint-eslint.yml @@ -19,7 +19,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: contents: read pull-requests: read @@ -47,7 +47,7 @@ jobs: - '**.vue' lint: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -87,7 +87,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, lint] if: always() diff --git a/.github/workflows/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml index 6341e5043adde..d53eca6c0ca14 100644 --- a/.github/workflows/lint-php-cs.yml +++ b/.github/workflows/lint-php-cs.yml @@ -19,7 +19,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} outputs: src: ${{ steps.changes.outputs.src}} @@ -42,7 +42,7 @@ jobs: - '**.php' lint: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -75,7 +75,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, lint] if: always() diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index 741640a121c97..aff0469645fba 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -19,7 +19,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} outputs: src: ${{ steps.changes.outputs.src}} steps: @@ -40,7 +40,7 @@ jobs: - '**.php' lint: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -74,7 +74,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, lint] if: always() diff --git a/.github/workflows/lint-stylelint.yml b/.github/workflows/lint-stylelint.yml index 18a92e8a3aecc..9acfa8643ce5b 100644 --- a/.github/workflows/lint-stylelint.yml +++ b/.github/workflows/lint-stylelint.yml @@ -19,7 +19,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: contents: read pull-requests: read @@ -44,7 +44,7 @@ jobs: - '**.vue' lint: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -83,7 +83,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, lint] if: always() diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index 17a0ea1ae7979..1d54d1b342c58 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -22,7 +22,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: contents: read pull-requests: read @@ -51,7 +51,7 @@ jobs: - '**.vue' test: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -94,7 +94,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, test] if: always() diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index b4fe8c65f5ff6..dacdc04a95c47 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -19,7 +19,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: contents: read pull-requests: read @@ -48,7 +48,7 @@ jobs: - 'version.php' build: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: needs.changes.outputs.src != 'false' @@ -104,7 +104,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, build] if: always() diff --git a/.github/workflows/npm-audit-fix.yml b/.github/workflows/npm-audit-fix.yml index 635cf1ce3b476..3a9462a07df7c 100644 --- a/.github/workflows/npm-audit-fix.yml +++ b/.github/workflows/npm-audit-fix.yml @@ -20,7 +20,7 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} env: # env variable for maintainers: 'false' disables auto-merge for these pull requests diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index c938ebedde1df..bdad127f96a15 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -20,7 +20,7 @@ concurrency: jobs: openapi: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 3710b2747ce21..f37b0185f4423 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -13,7 +13,7 @@ concurrency: jobs: performance-testing: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} # Skip entirely on fork PRs so the job result is 'skipped' rather than # 'failure'. The profiler action uses github.event.pull_request.head.repo.clone_url diff --git a/.github/workflows/phpunit-32bits.yml b/.github/workflows/phpunit-32bits.yml index 4194448d79216..3b1286d1cf684 100644 --- a/.github/workflows/phpunit-32bits.yml +++ b/.github/workflows/phpunit-32bits.yml @@ -23,7 +23,7 @@ concurrency: jobs: phpunit-32bits: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} diff --git a/.github/workflows/phpunit-kvstore.yml b/.github/workflows/phpunit-kvstore.yml index b41780c79ae14..56ca5e16e858f 100644 --- a/.github/workflows/phpunit-kvstore.yml +++ b/.github/workflows/phpunit-kvstore.yml @@ -14,7 +14,7 @@ env: jobs: phpunit-kvstore: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-mariadb.yml b/.github/workflows/phpunit-mariadb.yml index 391c21ef58390..d8c240efddc9e 100644 --- a/.github/workflows/phpunit-mariadb.yml +++ b/.github/workflows/phpunit-mariadb.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-mariadb: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-memcached.yml b/.github/workflows/phpunit-memcached.yml index 28851e5f5712f..12c13ed88d1c0 100644 --- a/.github/workflows/phpunit-memcached.yml +++ b/.github/workflows/phpunit-memcached.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-memcached: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-mysql-sharding.yml b/.github/workflows/phpunit-mysql-sharding.yml index f0948f68a7239..656162026eed8 100644 --- a/.github/workflows/phpunit-mysql-sharding.yml +++ b/.github/workflows/phpunit-mysql-sharding.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-mysql: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-mysql.yml b/.github/workflows/phpunit-mysql.yml index 984444d70ed2b..9c2f575c8a284 100644 --- a/.github/workflows/phpunit-mysql.yml +++ b/.github/workflows/phpunit-mysql.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-mysql: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-nodb.yml b/.github/workflows/phpunit-nodb.yml index 64f093e2374b2..ff047e74b9626 100644 --- a/.github/workflows/phpunit-nodb.yml +++ b/.github/workflows/phpunit-nodb.yml @@ -18,7 +18,7 @@ permissions: jobs: phpunit-nodb: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-object-store-primary.yml b/.github/workflows/phpunit-object-store-primary.yml index 99bdf2699929b..13e02e925cb44 100644 --- a/.github/workflows/phpunit-object-store-primary.yml +++ b/.github/workflows/phpunit-object-store-primary.yml @@ -9,7 +9,7 @@ permissions: jobs: object-store-primary-tests-minio: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} diff --git a/.github/workflows/phpunit-oci.yml b/.github/workflows/phpunit-oci.yml index dc05b2492ac30..3cd67aee78935 100644 --- a/.github/workflows/phpunit-oci.yml +++ b/.github/workflows/phpunit-oci.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-oci: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} diff --git a/.github/workflows/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml index 847b55624bb9d..b4315555512ff 100644 --- a/.github/workflows/phpunit-pgsql.yml +++ b/.github/workflows/phpunit-pgsql.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-pgsql: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index 2c10952a26b9e..08d5b315e560b 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -16,7 +16,7 @@ permissions: jobs: phpunit-sqlite: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 60d8b05977fa3..953fdee16ea83 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -18,7 +18,7 @@ concurrency: # GitHub allows a maximum of 20 reusable workflows per caller jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: contents: read pull-requests: read @@ -108,7 +108,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, mariadb, memcached, mysql, mysql-sharding, object-store-primary, oci, pgsql, sqlite, nodb, kvstore] if: always() diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 64337aa72f9c4..75b58551df2e6 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -28,7 +28,7 @@ env: jobs: gate: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Evaluate e2e tests execution conditions id: gate-e2e @@ -60,7 +60,7 @@ jobs: playwright-setup: timeout-minutes: 15 name: Playwright setup - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: gate steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -90,7 +90,7 @@ jobs: needs: [gate, playwright-setup] timeout-minutes: 60 name: Playwright tests ${{ matrix.shardIndex }} / ${{ matrix.shardTotal }} - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false matrix: @@ -160,7 +160,7 @@ jobs: needs: [gate, playwright-setup] timeout-minutes: 30 name: Playwright tests for installer - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} # The installation-wizard tests exercise every supported database backend, so # they need reachable database service containers. The Nextcloud container is @@ -270,7 +270,7 @@ jobs: if: ${{ !cancelled() && needs.gate.result == 'success' }} needs: [gate, playwright-tests, playwright-installer-tests] - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Restore context id: cache @@ -323,7 +323,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [gate, playwright-tests, playwright-installer-tests] if: always() diff --git a/.github/workflows/pr-feedback.yml b/.github/workflows/pr-feedback.yml index e93d2be9b01db..5a69f15c1c494 100644 --- a/.github/workflows/pr-feedback.yml +++ b/.github/workflows/pr-feedback.yml @@ -22,7 +22,7 @@ permissions: jobs: pr-feedback: if: ${{ github.repository_owner == 'nextcloud' }} - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} steps: - name: The get-github-handles-from-website action uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1 diff --git a/.github/workflows/rector-apply.yml b/.github/workflows/rector-apply.yml index 5facdc839f396..59cc5640dc75e 100644 --- a/.github/workflows/rector-apply.yml +++ b/.github/workflows/rector-apply.yml @@ -19,7 +19,7 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} strategy: fail-fast: false diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index c1118b6477c14..34fa783df2f7d 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -14,7 +14,10 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} + permissions: + contents: read + pull-requests: read outputs: src: ${{ steps.changes.outputs.src}} @@ -37,7 +40,7 @@ jobs: - '**.php' strict: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: ${{ needs.changes.outputs.src != 'false' && github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }} @@ -71,7 +74,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, strict] if: always() diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 3f485f875f7ec..da95a76f59c35 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -16,7 +16,7 @@ permissions: jobs: reuse-compliance-check: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index bd4a6707ccc9b..0026aa59e8391 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,7 +12,7 @@ permissions: jobs: stale: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} if: ${{ github.repository_owner != 'nextcloud-gmbh' }} @@ -34,4 +34,3 @@ jobs: days-before-stale: 30 days-before-close: 14 # debug-only: true - diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 8c03a175b3ff2..42fc94430ae9d 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -22,7 +22,11 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} + + permissions: + contents: read + pull-requests: read outputs: src: ${{ steps.changes.outputs.src }} @@ -46,7 +50,7 @@ jobs: - '**.php' static-code-analysis: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: ${{ needs.changes.outputs.src != 'false' && github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }} @@ -79,7 +83,7 @@ jobs: run: git diff --exit-code -- . ':!lib/composer' static-code-analysis-security: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: ${{ needs.changes.outputs.src != 'false' && github.repository_owner != 'nextcloud-gmbh' }} @@ -127,7 +131,7 @@ jobs: sarif_file: results.sarif static-code-analysis-ocp: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: ${{ needs.changes.outputs.src != 'false' && github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }} @@ -160,7 +164,7 @@ jobs: run: git diff --exit-code -- . ':!lib/composer' static-code-analysis-ncu: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: ${{ needs.changes.outputs.src != 'false' && github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }} @@ -189,7 +193,7 @@ jobs: run: composer run psalm:ncu -- --threads=1 --monochrome --no-progress --output-format=github static-code-analysis-strict: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }} needs: changes if: ${{ needs.changes.outputs.src != 'false' && github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }} @@ -219,7 +223,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, static-code-analysis, static-code-analysis-security, static-code-analysis-ocp, static-code-analysis-ncu, static-code-analysis-strict] if: always() diff --git a/.github/workflows/storage.yml b/.github/workflows/storage.yml index 6f88e3beb5c7e..345cfd051b143 100644 --- a/.github/workflows/storage.yml +++ b/.github/workflows/storage.yml @@ -18,7 +18,7 @@ concurrency: # GitHub allows a maximum of 20 reusable workflows per caller jobs: changes: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: contents: read pull-requests: read @@ -89,7 +89,7 @@ jobs: summary: permissions: contents: none - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} needs: [changes, files-external, object-storage-azure, object-storage-s3, object-storage-swift, integration-s3-primary] if: always() diff --git a/.github/workflows/update-min-supported-desktop.yml b/.github/workflows/update-min-supported-desktop.yml index e2726906defcb..e0f26be08e802 100644 --- a/.github/workflows/update-min-supported-desktop.yml +++ b/.github/workflows/update-min-supported-desktop.yml @@ -13,7 +13,7 @@ permissions: jobs: update-minimum-supported-desktop-version: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/update-stable-titles.yml b/.github/workflows/update-stable-titles.yml index ca8be8bff6c98..492f8285dae47 100644 --- a/.github/workflows/update-stable-titles.yml +++ b/.github/workflows/update-stable-titles.yml @@ -14,7 +14,7 @@ concurrency: jobs: update-pr-title: - runs-on: ubuntu-latest-low + runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }} permissions: pull-requests: write contents: read