@@ -20,15 +20,38 @@ jobs:
20
20
# - name: Set up environment
21
21
# uses: ./.github/actions/setup/poetry
22
22
# with:
23
- # os: ${{ job.os }}
24
- # python-version: '3.13.0'
25
- # poetry-install-options: "--only=code_quality --no-root"
26
- # poetry-export-options: "--only=code_quality"
27
-
28
- # - name: Check code style
29
- # run: poetry run ruff format --check
30
-
31
- hadolint :
23
+ # os: ${{ job.os }}
24
+ # python-version: '3.13.0'
25
+ # poetry-install-options: "--only=code_quality --no-root"
26
+ # poetry-export-options: "--only=code_quality"
27
+
28
+ # - name: Check code style
29
+ # run: poetry run ruff format --check
30
+
31
+ # - name: Checkout code
32
+ # uses: actions/checkout@v4
33
+
34
+ # # - name: Create output directory
35
+ # # run: |
36
+ # # mkdir -p "$(dirname "hadolint-results-${{ matrix.dockerfile }}.sarif")"
37
+
38
+ # - name: Run Hadolint
39
+ # uses: hadolint/[email protected]
40
+ # with:
41
+ # dockerfile: ${{ matrix.dockerfile }}
42
+ # format: sarif
43
+ # output-file: hadolint-results-${{ matrix.dockerfile }}.sarif
44
+ # no-fail: true
45
+ # ignore: DL3008,DL3013
46
+
47
+ # - name: Upload hadolint results to github security tab
48
+ # uses: github/codeql-action/upload-sarif@v3
49
+ # if: always()
50
+ # with:
51
+ # sarif_file: hadolint-results-${{ matrix.dockerfile }}.sarif
52
+ # wait-for-processing: true
53
+
54
+ hadolint :
32
55
name : Dockerfile Lint
33
56
runs-on : ubuntu-latest
34
57
permissions :
@@ -41,34 +64,12 @@ jobs:
41
64
- jupyterhub/hub/hub.Dockerfile
42
65
- jupyterhub/notebook/notebook.Dockerfile
43
66
steps :
44
- # - name: Checkout code
45
- # uses: actions/checkout@v4
46
-
47
- # # - name: Create output directory
48
- # # run: |
49
- # # mkdir -p "$(dirname "hadolint-results-${{ matrix.dockerfile }}.sarif")"
50
-
51
- # - name: Run Hadolint
52
- # uses: hadolint/[email protected]
53
- # with:
54
- # dockerfile: ${{ matrix.dockerfile }}
55
- # format: sarif
56
- # output-file: hadolint-results-${{ matrix.dockerfile }}.sarif
57
- # no-fail: true
58
- # ignore: DL3008,DL3013
59
-
60
- # - name: Upload hadolint results to github security tab
61
- # uses: github/codeql-action/upload-sarif@v3
62
- # if: always()
63
- # with:
64
- # sarif_file: hadolint-results-${{ matrix.dockerfile }}.sarif
65
- # wait-for-processing: true
66
67
- name : Checkout code
67
68
uses : actions/checkout@v4
68
69
69
70
- name : Sanitize Dockerfile name
70
71
id : sanitize_name
71
- run : echo "::set-output name= safe_name:: ${{ matrix.dockerfile//\//_ }}"
72
+ run : echo "safe_name= ${{ matrix.dockerfile//\//_ }}" >> $GITHUB_OUTPUT
72
73
73
74
- name : Run Hadolint
74
75
0 commit comments