Skip to content

fix: skip minikube image load and pass git tag as VERSION for pre-built operator in helm tests #3361

fix: skip minikube image load and pass git tag as VERSION for pre-built operator in helm tests

fix: skip minikube image load and pass git tag as VERSION for pre-built operator in helm tests #3361

Workflow file for this run

name: "Lint & License Check"
on:
pull_request:
push:
paths-ignore:
- 'docs/**'
branches:
- "main"
tags: ["v*.*.*"]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: ">=${{ env.golang-version }}"
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: latest
args: --timeout=20m0s
actionlint:
runs-on: ubuntu-latest
name: Lint GitHub Actions
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run actionlint
uses: raven-actions/actionlint@e01d1ea33dd6a5ed517d95b4c0c357560ac6f518 # v2.1.1
with:
# Disabled until existing shellcheck warnings are addressed
shellcheck: false
helm-lint:
runs-on: ubuntu-latest
name: Helm Lint
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
- name: Set up chart-testing
uses: helm/chart-testing-action@6ec842c01de15ebb84c8627d2744a0c2f2755c9f # v2.8.0
- name: Run chart-testing (lint)
run: ct lint --charts charts/mondoo-operator --validate-maintainers=false
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Copywrite
uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
with:
version: v0.24.0
- name: Check Header Compliance
run: copywrite headers --plan