Skip to content

Commit

Permalink
[ci] migrate super-linter to action
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Jan 19, 2025
1 parent 740252b commit d0c8f68
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check-codeowners.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Check CODEOWNERS
permissions: {}

on: pull_request
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Lint and Test Charts
permissions: {}

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release Charts
permissions: {}

on:
push:
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/superlinter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Lint Code Base
permissions: {}

# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
Expand All @@ -9,23 +10,33 @@ jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint Code Base
uses: docker://github/super-linter:slim-v4
uses: super-linter/super-linter/slim@v7.2.1
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: .github/linters
MULTI_STATUS: false
VALIDATE_ALL_CODEBASE: false
VALIDATE_BASH: false
VALIDATE_JSCPD: false
VALIDATE_KUBERNETES_KUBEVAL: false
VALIDATE_PYTHON: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_BLACK: false
VALIDATE_YAML: false
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
# VALIDATE_CHECKOV: true - always scans everything and all charts have too much errors
VALIDATE_EDITORCONFIG: true
VALIDATE_ENV: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITLEAKS: true
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_NATURAL_LANGUAGE: true
VALIDATE_PYTHON: true
VALIDATE_RENOVATE: true
VALIDATE_SHELL_SHFMT: true
VALIDATE_XML: true
VALIDATE_YAML: true
2 changes: 2 additions & 0 deletions .github/workflows/sync-readme.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
permissions: {}

on:
push:
branches:
Expand Down

0 comments on commit d0c8f68

Please sign in to comment.