improve workflow dispatch calls

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman 2025-11-14 15:12:02 -05:00
parent ee39d2ca75
commit 1b386e2711
7 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -7,5 +7,4 @@ permissions:
jobs:
run:
# Runner definition: workflows/.github/runs-on.yml
uses: anchore/workflows/.github/workflows/dependabot-automation.yaml@main

View File

@ -13,7 +13,6 @@ 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 }}

View File

@ -192,7 +192,6 @@ 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 }}

View File

@ -10,7 +10,6 @@ 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 }}

View File

@ -15,7 +15,7 @@ jobs:
name: "Publish test fixture image cache"
# we use this runner to get enough storage space for docker images and fixture cache
# Runner definition: workflows/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=release
runs-on: runs-on=${{ github.run_id }}/runner=build/disk=large
if: github.repository == 'anchore/syft' # only run for main repo
permissions:
packages: write

View File

@ -1,6 +1,7 @@
name: "Validate GitHub Actions"
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/**'