Skip to content

Commit 5901fd4

Browse files
Merge dashpay#6160: feat: add sbom and provenance in release for dockerhub; use jammy; apt remove as possible
9178e8a feat: add smob and provenance in release for dockerhub; use jammy; apt remove as possible (pasta) Pull request description: ## Issue being fixed or feature implemented Docker provenance refers to the origin and history of Docker images, including how they were built, modified, and by whom. An SBOM (Software Bill of Materials) is a detailed list of all components in a software application, providing transparency about libraries, dependencies, and versions used, which is crucial for security and compliance. ## What was done? Add SBOM and provenance to docker build; this may allow some level of validation that GitHub actions is actually doing what it says it is. See this for more information https://docs.docker.com/build/ci/github-actions/attestations/ ## How Has This Been Tested? Building with buildx with sbom and provenance flags locally ## Breaking Changes None ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK 9178e8a Tree-SHA512: 6e3f35a0b30f002e2d5d80d6dd18ee554a1c15c62c1d4cbe1185f38977f55a199998515cf5bb9a027670f068f3d56ef33faa062d8c4122a886375d00afe6bf2f
2 parents bf24a2b + 9178e8a commit 5901fd4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release_docker_hub.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
context: ./contrib/containers/deploy
6666
file: ./contrib/containers/deploy/Dockerfile.GitHubActions.Release
6767
push: true
68+
provenance: mode=max
69+
sbom: true
6870
tags: ${{ steps.docker_meta.outputs.tags }}
6971
labels: ${{ steps.docker_meta.outputs.labels }}
7072
build-args: |

contrib/containers/deploy/Dockerfile.GitHubActions.Release

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:focal
1+
FROM ubuntu:jammy
22
LABEL maintainer="Dash Developers <[email protected]>"
33
LABEL description="Dockerised DashCore"
44

@@ -33,6 +33,14 @@ RUN mach=$(uname -m) \
3333
&& rm -rf /tmp/dashcore* \
3434
&& chmod a+x /usr/local/bin/*
3535

36+
RUN apt-get update && \
37+
apt list --installed && \
38+
apt-get -y purge \
39+
wget \
40+
ca-certificates \
41+
&& apt-get -y autoremove \
42+
&& rm -rf /var/lib/apt/lists/*
43+
3644
USER dash
3745

3846
VOLUME ["/home/dash"]

0 commit comments

Comments
 (0)