fix: update go modules (patch) #236
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Linting | |
| # Run only what's relevant to the change. On a PR, dorny/paths-filter | |
| # inspects the diff against the base ref to decide which linters to fire. | |
| # When called from another workflow (e.g. release), every linter runs — | |
| # release time is not where to be clever about scope. | |
| # | |
| # Not wired on `push: main` on purpose: the same diff already ran on the | |
| # PR that produced that commit. | |
| on: | |
| pull_request: | |
| workflow_call: | |
| inputs: | |
| skip-go: | |
| description: Skip the Go linter. | |
| type: boolean | |
| default: false | |
| skip-helm: | |
| description: Skip the Helm linter. | |
| type: boolean | |
| default: false | |
| skip-renovate: | |
| description: Skip the Renovate config validator. | |
| type: boolean | |
| default: false | |
| skip-markdown: | |
| description: Skip the Markdown linter. | |
| type: boolean | |
| default: false | |
| # Read-only by default — every job here just inspects the source tree | |
| # and reports findings. Override at the job level if a future job ever | |
| # needs to write back (it shouldn't). | |
| permissions: | |
| contents: read | |
| # Silence Dagger's Cloud upload and analytics paths globally. | |
| env: | |
| DAGGER_NO_NAG: "1" | |
| DAGGER_CLOUD_TOKEN: "" | |
| DO_NOT_TRACK: "1" | |
| jobs: | |
| changes: | |
| name: Detect changed paths | |
| # On workflow_call there is no "base ref" semantics; skip detection | |
| # and let each linter run unconditionally via the if: guard below. | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| go: ${{ steps.filter.outputs.go }} | |
| helm: ${{ steps.filter.outputs.helm }} | |
| renovate: ${{ steps.filter.outputs.renovate }} | |
| markdown: ${{ steps.filter.outputs.markdown }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| fetch-depth: 1 | |
| - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4 | |
| id: filter | |
| with: | |
| # `dagger/**` is included in every filter because a change to | |
| # the pipeline definition (image versions, lint args, etc.) | |
| # affects what the linter actually does. | |
| filters: | | |
| go: | |
| - '**/*.go' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - '.golangci.yml' | |
| - 'dagger/**' | |
| helm: | |
| - 'chart/**' | |
| - 'dagger/**' | |
| renovate: | |
| - 'renovate.json5' | |
| - 'dagger/**' | |
| markdown: | |
| # Mirror the `ignores` list in .markdownlint-cli2.jsonc so a | |
| # change to one of those files doesn't pointlessly fire the | |
| # linter. Auto-generated outputs (CHANGELOG.md from | |
| # release-please, chart/README.md from helm-docs) and AI | |
| # assistant files (CLAUDE.md, AGENTS.md) are skipped by the | |
| # linter itself; keeping the filter in lockstep avoids a | |
| # job-with-zero-files on release-please / chart-readme PRs. | |
| - '**/*.md' | |
| - '!CHANGELOG.md' | |
| - '!chart/README.md' | |
| - '!CLAUDE.md' | |
| - '!AGENTS.md' | |
| - '.markdownlint-cli2.jsonc' | |
| - 'dagger/**' | |
| lint-go: | |
| name: Go | |
| needs: changes | |
| if: | | |
| always() && | |
| !inputs.skip-go && | |
| (github.event_name != 'pull_request' || needs.changes.outputs.go == 'true') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| fetch-depth: 1 | |
| - uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8 | |
| with: | |
| version: latest | |
| dagger-flags: --progress=logs | |
| verb: call | |
| args: lint-go | |
| lint-helm: | |
| name: Helm | |
| needs: changes | |
| if: | | |
| always() && | |
| !inputs.skip-helm && | |
| (github.event_name != 'pull_request' || needs.changes.outputs.helm == 'true') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| fetch-depth: 1 | |
| - uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8 | |
| with: | |
| version: latest | |
| dagger-flags: --progress=logs | |
| verb: call | |
| args: lint-helm | |
| lint-renovate: | |
| name: Renovate config | |
| needs: changes | |
| if: | | |
| always() && | |
| !inputs.skip-renovate && | |
| (github.event_name != 'pull_request' || needs.changes.outputs.renovate == 'true') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| fetch-depth: 1 | |
| - uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8 | |
| with: | |
| version: latest | |
| dagger-flags: --progress=logs | |
| verb: call | |
| args: lint-renovate | |
| lint-markdown: | |
| name: Markdown | |
| needs: changes | |
| if: | | |
| always() && | |
| !inputs.skip-markdown && | |
| (github.event_name != 'pull_request' || needs.changes.outputs.markdown == 'true') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| fetch-depth: 1 | |
| - uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8 | |
| with: | |
| version: latest | |
| dagger-flags: --progress=logs | |
| verb: call | |
| args: lint-markdown |