Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/bootstrap/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
cache-key-prefix:
description: "Prefix all cache keys with this value"
required: true
default: "181053ac82"
default: "53ac821810"
download-test-fixture-cache:
description: "Download test fixture cache from OCI and github actions"
required: true
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: "CodeQL Security Scan"

on:
workflow_dispatch:
push:
branches:
# only run when there are pushes to the main branch (not on PRs)
Expand All @@ -20,7 +21,8 @@ permissions:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04-4core-16gb
# Runner definition: repo(anchore/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
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/detect-schema-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ env:
jobs:
label:
name: "Label changes"
runs-on: ubuntu-22.04
# Runner definition: repo(anchore/workflows)/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
permissions:
contents: read
pull-requests: write
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ on:
jobs:
quality-gate:
environment: release
runs-on: ubuntu-24.04
if: ${{ github.event.inputs.phase == 'all' }}
# Runner definition: repo(anchore/workflows)/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=tiny
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
with:
Expand Down Expand Up @@ -128,8 +129,9 @@ jobs:

release:
needs: [quality-gate]
runs-on: ubuntu-24.04
if: ${{ github.event.inputs.phase == 'all' }}
# Runner definition: repo(anchore/workflows)/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=release
permissions:
contents: write
packages: write
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-fixture-cache-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: repo(anchore/workflows)/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=build/disk=large
if: github.repository == 'anchore/syft' # only run for main repo
permissions:
packages: write
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-anchore-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ permissions:

jobs:
update:
runs-on: ubuntu-latest
# Runner definition: repo(anchore/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@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/update-bootstrap-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ permissions:

jobs:
update-bootstrap-tools:
runs-on: ubuntu-latest
# Runner definition: repo(anchore/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@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
Expand All @@ -28,16 +29,16 @@ jobs:
run: |
make update-tools
make list-tools

export NO_COLOR=1
delimiter="$(openssl rand -hex 8)"

{
echo "status<<${delimiter}"
make list-tool-updates
echo "${delimiter}"
} >> $GITHUB_OUTPUT

{
echo "### Tool version status"
echo "\`\`\`"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-cpe-dictionary-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:

jobs:
upgrade-cpe-dictionary-index:
runs-on: ubuntu-latest
# Runner definition: repo(anchore/workflows)/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=small-arm
permissions:
contents: read
packages: write
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-spdx-license-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:

jobs:
upgrade-spdx-license-list:
runs-on: ubuntu-latest
# Runner definition: repo(anchore/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@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/validate-github-actions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Validate GitHub Actions"

on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/**'
Expand All @@ -18,7 +19,8 @@ permissions:
jobs:
zizmor:
name: "Lint"
runs-on: ubuntu-latest
# Runner definition: repo(anchore/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
Expand Down
Loading
Loading