From 181ec1bfa8d420514fca3d6de6c3989e796a29db Mon Sep 17 00:00:00 2001 From: Bob Evans Date: Wed, 12 Jun 2024 12:45:23 -0400 Subject: [PATCH] ci: Updated security agent workflow to use large runners when available (#2271) --- .github/workflows/versioned-security-agent.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/versioned-security-agent.yml b/.github/workflows/versioned-security-agent.yml index 9dd64b61fa..236a5043d5 100644 --- a/.github/workflows/versioned-security-agent.yml +++ b/.github/workflows/versioned-security-agent.yml @@ -58,7 +58,7 @@ jobs: github.event_name == 'schedule' || needs.should_run.outputs.sec_agent_did_change == 'true' - runs-on: {{ vars.NR_RUNNER || 'ubuntu-latest' }} + runs-on: ${{ vars.NR_RUNNER || 'ubuntu-latest' }} strategy: fail-fast: false @@ -82,6 +82,7 @@ jobs: run: TEST_CHILD_TIMEOUT=600000 npm run versioned:security env: VERSIONED_MODE: --${{ inputs.mode || 'major' }} - JOBS: 4 # 2 per CPU seems to be the sweet spot in GHA (July 2022) + # Run more jobs when using larger runner, otherwise 2 per CPU seems to be the sweet spot in GHA default runners(July 2022) + JOBS: ${{ vars.NR_RUNNER && 16 || 4 }} SKIP_C8: true