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
7 changes: 6 additions & 1 deletion .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@ on:
required: false
type: string
default: './...'
runner:
description: 'Runner for the govulncheck job (default: ubuntu-slim)'
required: false
type: string
default: 'ubuntu-slim'

permissions:
contents: read # baseline for checkout

jobs:
govulncheck:
runs-on: ubuntu-slim
runs-on: ${{ inputs.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint-codegen-fabrica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ on:
required: false
type: string
default: ''
runner:
description: 'Runner for the codegen check job (default: ubuntu-slim)'
required: false
type: string
default: 'ubuntu-slim'

permissions:
contents: read # baseline for checkout

jobs:
lint-codegen-fabrica:
runs-on: ubuntu-slim
runs-on: ${{ inputs.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ on:
required: false
type: string
default: 'latest'
runner:
description: 'Runner for the golangci-lint job (default: ubuntu-slim)'
required: false
type: string
default: 'ubuntu-slim'

permissions:
contents: read # baseline for checkout

jobs:
golangci-lint:
runs-on: ubuntu-slim
runs-on: ${{ inputs.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test-unit-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@ on:
required: false
type: string
default: 'coverage.out'
runner:
description: 'Runner for the tests job (default: ubuntu-slim)'
required: false
type: string
default: 'ubuntu-slim'

permissions:
contents: read # baseline for checkout

jobs:
test-unit-go:
runs-on: ubuntu-slim
runs-on: ${{ inputs.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/trivy-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ on:
required: false
type: string
default: '1'
runner:
description: 'Runner for the scan job (default: ubuntu-slim)'
required: false
type: string
default: 'ubuntu-slim'

permissions:
contents: read # baseline for checkout
Expand Down Expand Up @@ -96,7 +101,7 @@ jobs:
trivy:
needs: discover
if: ${{ needs.discover.outputs.images != '[]' }}
runs-on: ubuntu-slim
runs-on: ${{ inputs.runner }}
strategy:
fail-fast: false
matrix:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:

Pin a commit SHA instead for maximum supply-chain safety if desired.

Workflows with a `runner` input run on `ubuntu-slim` by default, which has 1 CPU and a 15-minute job limit; set `runner: ubuntu-latest` for longer jobs.

## Workflows

### Building and releasing with GoReleaser
Expand Down Expand Up @@ -240,6 +242,7 @@ jobs:
# with:
# golangci-lint-version: v2.13.2
# go-version-file: go.mod
# runner: ubuntu-latest
```

### test-unit-go (Reusable Workflow)
Expand Down Expand Up @@ -268,6 +271,7 @@ jobs:
# ./...
# coverage: true
# coverage-file: coverage.out
# runner: ubuntu-latest
```

### reuse (Reusable Workflow)
Expand Down Expand Up @@ -309,6 +313,7 @@ jobs:
# with:
# go-version: 1.26.7 # default: read from go.mod
# go-package: ./cmd/...
# runner: ubuntu-latest
```

### dependency-review (Reusable Workflow)
Expand Down Expand Up @@ -353,6 +358,7 @@ jobs:
# severity: CRITICAL
# ignore-unfixed: true
# exit-code: '0' # report only
# runner: ubuntu-latest
```

### scorecard (Reusable Workflow)
Expand Down Expand Up @@ -555,6 +561,7 @@ jobs:
# go-version: stable # mutually exclusive with go-version-file
# go-version-file: go.mod
# fabrica-ref: v0.4.5 # tag, branch, or SHA; default: version in go.mod
# runner: ubuntu-latest
```

### lint-renovate (Reusable Workflow)
Expand Down
Loading