Skip to content

Commit

Permalink
Fix GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
mbologna committed Nov 26, 2024
1 parent 4305322 commit 512e07e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-scan-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Hadolint
- name: Lint Dockerfile with Hadolint
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile

- name: Lint Shell Script with ShellCheck
uses: ludeeus/action-shellcheck@master
with:
files: |
build.sh
entrypoint.sh

- name: Lint Kubernetes files
- name: Lint Kubernetes resources with KubeLinter
id: kube-lint-scan
uses: stackrox/kube-linter-action@v1
with:
directory: k8s
config: .kube-linter/config.yaml

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
6 changes: 6 additions & 0 deletions .kube-linter/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
checks:
addAllBuiltIn: true
exclude:
- "latest-tag"
- "no-read-only-root-fs"
- "run-as-non-root"

0 comments on commit 512e07e

Please sign in to comment.