Skip to content

Commit 1fa9778

Browse files
committed
migrate to runs-on runners
Signed-off-by: Alex Goodman <[email protected]>
1 parent bbef262 commit 1fa9778

13 files changed

+43
-31
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ permissions:
2020
jobs:
2121
analyze:
2222
name: Analyze
23-
runs-on: ubuntu-22.04-4core-16gb
23+
# Runner definition: workflows/.github/runs-on.yml
24+
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
2425
if: github.repository == 'anchore/syft' # only run for main repo
2526
permissions:
2627
security-events: write
@@ -51,7 +52,7 @@ jobs:
5152
with:
5253
languages: ${{ matrix.language }}
5354
# If you wish to specify custom queries, you can do so here or in a config file.
54-
# By default, queries listed here will override any specified in a config file.
55+
# By default, queries listed here will override any specified in a config file.
5556
# Prefix the list here with "+" to use these queries and those in the config file.
5657
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5758

.github/workflows/dependabot-automation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ permissions:
77

88
jobs:
99
run:
10+
# Runner definition: workflows/.github/runs-on.yml
1011
uses: anchore/workflows/.github/workflows/dependabot-automation.yaml@main

.github/workflows/detect-schema-changes.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ env:
2727
jobs:
2828
label:
2929
name: "Label changes"
30-
runs-on: ubuntu-22.04
30+
# Runner definition: workflows/.github/runs-on.yml
31+
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
3132
permissions:
3233
contents: read
3334
pull-requests: write

.github/workflows/oss-project-board-add.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
jobs:
1515
run:
16+
# Runner definition: workflows/.github/runs-on.yml
1617
uses: "anchore/workflows/.github/workflows/oss-project-board-add.yaml@main"
1718
secrets:
1819
token: ${{ secrets.OSS_PROJECT_GH_TOKEN }}

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
jobs:
1414
quality-gate:
1515
environment: release
16-
runs-on: ubuntu-24.04
16+
# Runner definition: workflows/.github/runs-on.yml
17+
runs-on: runs-on=${{ github.run_id }}/runner=tiny
1718
steps:
1819
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
1920
with:
@@ -119,7 +120,8 @@ jobs:
119120
120121
release:
121122
needs: [quality-gate]
122-
runs-on: ubuntu-24.04
123+
# Runner definition: workflows/.github/runs-on.yml
124+
runs-on: runs-on=${{ github.run_id }}/runner=release
123125
permissions:
124126
contents: write
125127
packages: write
@@ -190,6 +192,7 @@ jobs:
190192
release-install-script:
191193
needs: [release]
192194
if: ${{ needs.release.result == 'success' }}
195+
# Runner definition: workflows/.github/runs-on.yml
193196
uses: "anchore/workflows/.github/workflows/release-install-script.yaml@main"
194197
with:
195198
tag: ${{ github.event.inputs.version }}

.github/workflows/remove-awaiting-response-label.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
contents: read
1111
issues: write
1212
pull-requests: write
13+
# Runner definition: workflows/.github/runs-on.yml
1314
uses: "anchore/workflows/.github/workflows/remove-awaiting-response-label.yaml@main"
1415
secrets:
1516
token: ${{ secrets.OSS_PROJECT_GH_TOKEN }}

.github/workflows/test-fixture-cache-publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
Publish:
1515
name: "Publish test fixture image cache"
1616
# we use this runner to get enough storage space for docker images and fixture cache
17-
runs-on: ubuntu-22.04-4core-16gb
17+
# Runner definition: workflows/.github/runs-on.yml
18+
runs-on: runs-on=${{ github.run_id }}/runner=release
1819
if: github.repository == 'anchore/syft' # only run for main repo
1920
permissions:
2021
packages: write

.github/workflows/update-anchore-dependencies.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ permissions:
1212

1313
jobs:
1414
update:
15-
runs-on: ubuntu-latest
15+
# Runner definition: workflows/.github/runs-on.yml
16+
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
1617
if: github.repository_owner == 'anchore' # only run for main repo (not forks)
1718
steps:
1819
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0

.github/workflows/update-bootstrap-tools.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ permissions:
1010

1111
jobs:
1212
update-bootstrap-tools:
13-
runs-on: ubuntu-latest
13+
# Runner definition: workflows/.github/runs-on.yml
14+
runs-on: runs-on=${{ github.run_id }}/runner=small
1415
if: github.repository == 'anchore/syft' # only run for main repo
1516
steps:
1617
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
@@ -28,16 +29,16 @@ jobs:
2829
run: |
2930
make update-tools
3031
make list-tools
31-
32+
3233
export NO_COLOR=1
3334
delimiter="$(openssl rand -hex 8)"
34-
35+
3536
{
3637
echo "status<<${delimiter}"
3738
make list-tool-updates
3839
echo "${delimiter}"
3940
} >> $GITHUB_OUTPUT
40-
41+
4142
{
4243
echo "### Tool version status"
4344
echo "\`\`\`"

.github/workflows/update-cpe-dictionary-index.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ env:
1313

1414
jobs:
1515
upgrade-cpe-dictionary-index:
16-
runs-on: ubuntu-latest
16+
# Runner definition: workflows/.github/runs-on.yml
17+
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
1718
permissions:
1819
contents: read
1920
packages: write

0 commit comments

Comments
 (0)