Skip to content

Update module github.com/cert-manager/cert-manager to v1.20.1 (main) #12851

Update module github.com/cert-manager/cert-manager to v1.20.1 (main)

Update module github.com/cert-manager/cert-manager to v1.20.1 (main) #12851

Workflow file for this run

name: Lint & Formatting
on:
pull_request:
branches:
- main
merge_group:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.ref_name }}-lint-format
cancel-in-progress: true
permissions:
contents: read
jobs:
format:
name: Format
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Golang Environment
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: Run goimports & gofumpt
run: |
make format
git diff --exit-code
lint:
name: Lint
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: read # for golangci-lint-action
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Golang Environment
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: Generate secrets for linting
run: |
make secrets
- name: Lint Code
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
only-new-issues: true
actionlint:
name: Actionlint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: reviewdog/action-actionlint@0d952c597ef8459f634d7145b0b044a9699e5e43 # v1.71.0
with:
actionlint_flags: -shellcheck ""
chart-lint:
name: Chart Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Helm
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
with:
version: 'v3.18.6'
- name: Lint chart
run: helm lint charts/nginx-ingress
markdown-lint:
name: Markdown Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: DavidAnson/markdownlint-cli2-action@ce4853d43830c74c1753b39f3cf40f71c2031eb9 # v23.0.0
with:
config: .markdownlint-cli2.yaml
globs: "**/*.md"
fix: false