Skip to content

Commit

Permalink
Install Hadolint instead of dockle
Browse files Browse the repository at this point in the history
  • Loading branch information
wg102 committed Jun 17, 2024
1 parent 6682867 commit 9b82abe
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build-centraldashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
CLUSTER_RESOURCE_GROUP: k8s-cancentral-01-covid-aks
TRIVY_VERSION: "v0.43.1"
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
HADOLINT_VERSION: "2.12.0"

jobs:
build-push:
Expand Down Expand Up @@ -73,14 +74,22 @@ jobs:
trivy image localhost:5000/kubeflow/centraldashboard-aaw2:${{ github.sha }} --exit-code 1 --timeout=20m --security-checks vuln --severity CRITICAL
# Run Dockle
- name: Run dockle
uses: goodwithtech/dockle-action@main
with:
image: localhost:5000/kubeflow/centraldashboard-aaw2:${{ github.sha }}
format: 'list'
exit-code: '0'
exit-level: 'fatal'
ignore: 'DKL-DI-0006'
# - name: Run dockle
# uses: goodwithtech/dockle-action@main
# with:
# image: localhost:5000/kubeflow/centraldashboard-aaw2:${{ github.sha }}
# format: 'list'
# exit-code: '0'
# exit-level: 'fatal'
# ignore: 'DKL-DI-0006'

- name: Run Hadolint
run: |
sudo curl -L https://github.com/hadolint/hadolint/releases/download/v${{ env.HADOLINT_VERSION }}/hadolint-Linux-x86_64 --output hadolint
sudo chmod +x hadolint
./hadolint localhost:5000/kubeflow/centraldashboard-aaw2:${{ github.sha }} --no-fail
# Pushes if this is a push to master or an update to a PR that has auto-deploy label
- name: Test if we should push to ACR
Expand Down

0 comments on commit 9b82abe

Please sign in to comment.