chore(deps): update https://github.com/konflux-ci/integration-service digest to caf6fe6 #54
This file contains 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: Static code checks | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
merge_group: | |
types: [checks_requested] | |
jobs: | |
kube-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create ./.kube-linter/ directory | |
shell: bash | |
run: mkdir -p ./.kube-linter/ | |
- name: Generate default configuration | |
shell: bash | |
run: | | |
# workaround: create dummy patch for building the manifests for kube-linter | |
cp dependencies/smee/smee-channel-id.tpl dependencies/smee/smee-channel-id.yaml | |
find . -name "kustomization.yaml" -o -name "kustomization.yml" | while read -r file; do | |
dir=$(dirname "$file") | |
dir=${dir#./} | |
output_file=$(echo "out-$dir" | tr "/" "-") | |
kustomize build "$dir" > "./.kube-linter/$output_file.yaml" | |
done | |
- name: Scan yaml files with kube-linter | |
uses: stackrox/kube-linter-action@v1 | |
id: kube-linter-action-scan | |
with: | |
directory: ./.kube-linter/ | |
config: ./.github/.kube-linter-config.yaml |