Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,33 @@ concurrency:
permissions: {}

jobs:
# Docs-only changes (docs/, markdown, rst) can't affect the built image, so building/pushing one
# is redundant. Detected once here so the job below can skip entirely on them.
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Check for non-doc changes
id: filter
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
with:
predicate-quantifier: 'some-with-excludes'
filters: |
code:
- '**'
- '!docs/**'
- '!**/*.md'
- '!**/*.rst'

docker:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
outputs:
image_digest: ${{ steps.build.outputs.digest }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,34 @@ on:
permissions: {}

jobs:
# Docs-only changes (docs/, markdown, rst) can't affect Go code, so CodeQL has nothing new to
# find. Detected once here so the job below can skip entirely on them.
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Check for non-doc changes
id: filter
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
with:
predicate-quantifier: 'some-with-excludes'
filters: |
code:
- '**'
- '!docs/**'
- '!**/*.md'
- '!**/*.rst'

analyze:
name: Analyze
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
permissions:
actions: read
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,33 @@ on:
permissions: {}

jobs:
# Docs-only changes (docs/, markdown, rst) can't affect Go code, so govulncheck has nothing new
# to find. Detected once here so the job below can skip entirely on them.
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Check for non-doc changes
id: filter
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
with:
predicate-quantifier: 'some-with-excludes'
filters: |
code:
- '**'
- '!docs/**'
- '!**/*.md'
- '!**/*.rst'

govulncheck_job:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
name: Run govulncheck
permissions:
Expand All @@ -24,4 +50,4 @@ jobs:
uses: golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # v1
with:
go-version-input: 'stable'
go-package: ./...
go-package: ./...
Loading