mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
migrate to runs-on runners
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
78a4ab8ced
commit
178d38bc73
3
.github/workflows/codeql-analysis.yml
vendored
3
.github/workflows/codeql-analysis.yml
vendored
@ -20,7 +20,8 @@ permissions:
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-22.04-4core-16gb
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
if: github.repository == 'anchore/syft' # only run for main repo
|
||||
permissions:
|
||||
security-events: write
|
||||
|
||||
1
.github/workflows/dependabot-automation.yaml
vendored
1
.github/workflows/dependabot-automation.yaml
vendored
@ -7,4 +7,5 @@ permissions:
|
||||
|
||||
jobs:
|
||||
run:
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
uses: anchore/workflows/.github/workflows/dependabot-automation.yaml@main
|
||||
|
||||
3
.github/workflows/detect-schema-changes.yaml
vendored
3
.github/workflows/detect-schema-changes.yaml
vendored
@ -27,7 +27,8 @@ env:
|
||||
jobs:
|
||||
label:
|
||||
name: "Label changes"
|
||||
runs-on: ubuntu-22.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
1
.github/workflows/oss-project-board-add.yaml
vendored
1
.github/workflows/oss-project-board-add.yaml
vendored
@ -13,6 +13,7 @@ on:
|
||||
|
||||
jobs:
|
||||
run:
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
uses: "anchore/workflows/.github/workflows/oss-project-board-add.yaml@main"
|
||||
secrets:
|
||||
token: ${{ secrets.OSS_PROJECT_GH_TOKEN }}
|
||||
|
||||
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@ -13,7 +13,8 @@ on:
|
||||
jobs:
|
||||
quality-gate:
|
||||
environment: release
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=tiny
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -119,7 +120,8 @@ jobs:
|
||||
|
||||
release:
|
||||
needs: [quality-gate]
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=release
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
@ -190,6 +192,7 @@ jobs:
|
||||
release-install-script:
|
||||
needs: [release]
|
||||
if: ${{ needs.release.result == 'success' }}
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
uses: "anchore/workflows/.github/workflows/release-install-script.yaml@main"
|
||||
with:
|
||||
tag: ${{ github.event.inputs.version }}
|
||||
|
||||
@ -10,6 +10,7 @@ jobs:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
uses: "anchore/workflows/.github/workflows/remove-awaiting-response-label.yaml@main"
|
||||
secrets:
|
||||
token: ${{ secrets.OSS_PROJECT_GH_TOKEN }}
|
||||
|
||||
@ -14,7 +14,8 @@ jobs:
|
||||
Publish:
|
||||
name: "Publish test fixture image cache"
|
||||
# we use this runner to get enough storage space for docker images and fixture cache
|
||||
runs-on: ubuntu-22.04-4core-16gb
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=release
|
||||
if: github.repository == 'anchore/syft' # only run for main repo
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
@ -12,7 +12,8 @@ permissions:
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
if: github.repository_owner == 'anchore' # only run for main repo (not forks)
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
|
||||
3
.github/workflows/update-bootstrap-tools.yml
vendored
3
.github/workflows/update-bootstrap-tools.yml
vendored
@ -10,7 +10,8 @@ permissions:
|
||||
|
||||
jobs:
|
||||
update-bootstrap-tools:
|
||||
runs-on: ubuntu-latest
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small
|
||||
if: github.repository == 'anchore/syft' # only run for main repo
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
|
||||
@ -13,7 +13,8 @@ env:
|
||||
|
||||
jobs:
|
||||
upgrade-cpe-dictionary-index:
|
||||
runs-on: ubuntu-latest
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
@ -13,7 +13,8 @@ env:
|
||||
|
||||
jobs:
|
||||
upgrade-spdx-license-list:
|
||||
runs-on: ubuntu-latest
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
if: github.repository == 'anchore/syft' # only run for main repo
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
|
||||
@ -18,7 +18,8 @@ permissions:
|
||||
jobs:
|
||||
zizmor:
|
||||
name: "Lint"
|
||||
runs-on: ubuntu-latest
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write # for uploading SARIF results
|
||||
|
||||
30
.github/workflows/validations.yaml
vendored
30
.github/workflows/validations.yaml
vendored
@ -11,11 +11,11 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
Static-Analysis:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "Static analysis"
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -27,12 +27,12 @@ jobs:
|
||||
- name: Run static analysis
|
||||
run: make static-analysis
|
||||
|
||||
|
||||
Unit-Test:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "Unit tests"
|
||||
# we need more storage than what's on the default runner
|
||||
runs-on: ubuntu-22.04-4core-16gb
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -46,11 +46,11 @@ jobs:
|
||||
- name: Run unit tests
|
||||
run: make unit
|
||||
|
||||
|
||||
Integration-Test:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "Integration tests"
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -67,10 +67,10 @@ jobs:
|
||||
- name: Run integration tests
|
||||
run: make integration
|
||||
|
||||
|
||||
Build-Snapshot-Artifacts:
|
||||
name: "Build snapshot artifacts"
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=build
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -100,12 +100,11 @@ jobs:
|
||||
.task
|
||||
key: snapshot-build-${{ github.run_id }}
|
||||
|
||||
|
||||
Upload-Snapshot-Artifacts:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "Upload snapshot artifacts"
|
||||
needs: [Build-Snapshot-Artifacts]
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ubuntu-latest-arm
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -162,7 +161,8 @@ jobs:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "Acceptance tests (Linux)"
|
||||
needs: [Build-Snapshot-Artifacts]
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -202,7 +202,6 @@ jobs:
|
||||
if: steps.install-test-image-cache.outputs.cache-hit != 'true'
|
||||
run: make install-test-cache-save
|
||||
|
||||
|
||||
Acceptance-Mac:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "Acceptance tests (Mac)"
|
||||
@ -244,12 +243,12 @@ jobs:
|
||||
- name: Run install.sh tests (Mac)
|
||||
run: make install-test-ci-mac
|
||||
|
||||
|
||||
Cli-Linux:
|
||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||
name: "CLI tests (Linux)"
|
||||
needs: [Build-Snapshot-Artifacts]
|
||||
runs-on: ubuntu-24.04
|
||||
# Runner definition: workflows/.github/runs-on.yml
|
||||
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||
with:
|
||||
@ -278,11 +277,10 @@ jobs:
|
||||
- name: Run CLI Tests (Linux)
|
||||
run: make cli
|
||||
|
||||
|
||||
Cleanup-Cache:
|
||||
name: "Cleanup snapshot cache"
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ubuntu-latest-arm
|
||||
permissions:
|
||||
actions: write
|
||||
needs:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user