diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 009b753f4fa..a9688f61c11 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -74,7 +74,7 @@ permissions: jobs: build-tarball: if: github.event.pull_request.draft == false - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6ad66a72676..4128df452b9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,7 @@ jobs: analyze: if: github.repository == 'nodejs/node' name: Analyze - runs-on: ubuntu-slim + runs-on: ubuntu-latest permissions: actions: read contents: read diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 9d06f0b2124..d9a2c9b3b77 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -22,7 +22,7 @@ permissions: jobs: build-docs: if: github.event.pull_request.draft == false - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 43a64994207..e550f95684d 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -40,7 +40,7 @@ jobs: run: NODE=$(command -v node) make lint-addon-docs lint-cpp: if: github.event.pull_request.draft == false - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -60,7 +60,7 @@ jobs: run: make lint-cpp format-cpp: if: ${{ github.event.pull_request && github.event.pull_request.draft == false && github.base_ref == github.event.repository.default_branch }} - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/test-shared.yml b/.github/workflows/test-shared.yml index 73254d292ec..c4701fc73f7 100644 --- a/.github/workflows/test-shared.yml +++ b/.github/workflows/test-shared.yml @@ -125,7 +125,7 @@ jobs: build-tarball: if: github.event.pull_request.draft == false name: ${{ github.event_name == 'workflow_dispatch' && 'Skipped job' || 'Build slim tarball' }} - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: