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