File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 17
17
DEV_REGISTRY_NAME : k8scc01covidacrdev
18
18
TRIVY_VERSION : " v0.43.1"
19
19
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
20
+ HADOLINT_VERSION : " 2.12.0"
20
21
21
22
jobs :
22
23
build :
65
66
username : ${{ secrets.DEV_REGISTRY_USERNAME }}
66
67
password : ${{ secrets.DEV_REGISTRY_PASSWORD }}
67
68
69
+ - name : Run Hadolint
70
+ run : |
71
+ sudo curl -L https://github.com/hadolint/hadolint/releases/download/v${{ env.HADOLINT_VERSION }}/hadolint-Linux-x86_64 --output hadolint
72
+ sudo chmod +x hadolint
73
+ ./hadolint ./Dockerfile --no-fail
68
74
69
75
- name : Build image locally
70
76
run : |
76
82
run : |
77
83
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin ${{ env.TRIVY_VERSION }}
78
84
trivy image localhost:5000/jupyter-apis-aaw2:${{ github.sha }} --exit-code 1 --timeout=20m --security-checks vuln --severity CRITICAL
79
-
80
- # Run Dockle -> Will need to be replace to hadolint but on hold
81
- # - name: Run dockle
82
- # uses: goodwithtech/dockle-action@main
83
- # with:
84
- # image: localhost:5000/jupyter-apis-aaw2:${{ github.sha }}
85
- # format: 'list'
86
- # exit-code: '0'
87
- # exit-level: 'fatal'
88
- # ignore: 'DKL-DI-0006'
89
85
90
86
# Container build and push to a Azure Container registry (ACR)
91
87
- name : Push to ACR if necessary
You can’t perform that action at this time.
0 commit comments