Large runner without justification¶
Rule ID |
|
|---|---|
Category |
energy |
Severity |
low |
A GPU or large runner is used but no compute-intensive steps (model training, heavy compilation) are present.
Detection¶
pattern_matching — Regex or keyword matching on string field values.
Examples¶
Non-compliant:
jobs:
lint:
runs-on: ubuntu-latest-gpu
steps:
- uses: actions/checkout@v4
- run: npm run lint
Compliant:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm run lint
Fix: Replace the GPU or large runner with a standard runner (ubuntu-latest) for lightweight tasks. Reserve large runners for compute-intensive workloads like model training or heavy compilation.