Skip to content

Commit 181ec1b

Browse files
authoredJun 12, 2024··
ci: Updated security agent workflow to use large runners when available (#2271)
1 parent 761fcd5 commit 181ec1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎.github/workflows/versioned-security-agent.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
github.event_name == 'schedule' ||
5959
needs.should_run.outputs.sec_agent_did_change == 'true'
6060

61-
runs-on: {{ vars.NR_RUNNER || 'ubuntu-latest' }}
61+
runs-on: ${{ vars.NR_RUNNER || 'ubuntu-latest' }}
6262

6363
strategy:
6464
fail-fast: false
@@ -82,6 +82,7 @@ jobs:
8282
run: TEST_CHILD_TIMEOUT=600000 npm run versioned:security
8383
env:
8484
VERSIONED_MODE: --${{ inputs.mode || 'major' }}
85-
JOBS: 4 # 2 per CPU seems to be the sweet spot in GHA (July 2022)
85+
# Run more jobs when using larger runner, otherwise 2 per CPU seems to be the sweet spot in GHA default runners(July 2022)
86+
JOBS: ${{ vars.NR_RUNNER && 16 || 4 }}
8687
SKIP_C8: true
8788

0 commit comments

Comments
 (0)
Please sign in to comment.