-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (93 loc) · 2.36 KB
/
Copy pathbuild-container.yml
File metadata and controls
96 lines (93 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Copyright © TUM AET 2025 - 2025
#
# Licensed under the MIT License
#
# Authors: Benedikt Hofmann, Patrick Stoeckle, and other contributors
#
# SPDX-FileCopyrightText: 2025 TUM AET
#
# SPDX-License-Identifier: MIT
name: container image building and scanning
on:
workflow_call:
inputs:
context:
required: true
type: string
dockerfile:
required: true
type: string
image-registry:
required: false
type: string
default: ghcr.io
image-name:
required: true
type: string
image-tag:
required: true
type: string
ignore-codes:
required: false
type: string
default: ""
image-title:
description: The title of the image
required: true
type: string
image-description:
description: The description of the image
required: true
type: string
image-authors:
description: The authors of the image
required: true
type: string
secrets:
cosign-key:
required: true
jobs:
hadolint:
permissions:
contents: read
name: Hadolint
uses: ./.github/workflows/hadolint.yml
with:
dockerfile: ${{ inputs.dockerfile }}
docker:
uses: ./.github/workflows/docker.yml
needs:
- hadolint
with:
context: ${{ inputs.context }}
dockerfile: ${{ inputs.dockerfile }}
image-authors: ${{ inputs.image-authors }}
image-description: ${{ inputs.image-description }}
image-name: ${{ inputs.image-name }}
image-registry: ${{ inputs.image-registry }}
image-tag: ${{ inputs.image-tag }}
image-title: ${{ inputs.image-title }}
permissions:
contents: read
packages: write
dockle:
uses: ./.github/workflows/dockle.yml
needs:
- docker
with:
ignore-codes: ${{ inputs.ignore-codes }}
image-digest: ${{ needs.docker.outputs.image-digest }}
image-name: ${{ inputs.image-name }}
image-registry: ${{ inputs.image-registry }}
trivy:
uses: ./.github/workflows/trivy.yml
needs:
- docker
with:
image-digest: ${{ needs.docker.outputs.image-digest }}
image-name: ${{ inputs.image-name }}
image-registry: ${{ inputs.image-registry }}
permissions:
packages: write
secrets:
cosign-key: ${{ secrets.cosign-key }}