Skip to content

Commit 46f693a

Browse files
authored
Merge pull request #1750 from GoogleContainerTools/update-security-info
Make it easier to find deb versions
2 parents 945a0c3 + e46c6db commit 46f693a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Distroless currently tracks debian 12 ([bookworm](https://packages.debian.org/bookworm)) packages.
66

7-
Debian tracking information at https://github.com/GoogleContainerTools/distroless/blob/main/debian_archives.bzl and generally is updated within 48 hours of debian publishing an update.
7+
Debian package versions used for the current build are found in https://github.com/GoogleContainerTools/distroless/blob/main/private/repos/deb. It can be parsed and printed into simple json data by invoking `./knife deb-versions` at the root of this project.
88

99
## Reporting a Vulnerability
1010

knife

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ function cmd_test () {
157157
bazel test --test_timeout=900 //... $arch_specific_targets
158158
}
159159

160+
function cmd_deb_versions () {
161+
echo "🔧 Printing .deb Versions (bookworm) from private/repos/deb/bookworm*.lock.json"
162+
echo ""
163+
164+
jq -n '[inputs.packages[]] | group_by(.arch) | map({(.[0].arch): map({package: .name, version: .version})})' private/repos/deb/bookworm*.lock.json
165+
}
160166

161167
case "${1:-"~~nocmd"}" in
162168
lock)
@@ -177,8 +183,11 @@ test)
177183
update-java-archives)
178184
cmd_update_java_archives
179185
;;
186+
deb-versions)
187+
cmd_deb_versions
188+
;;
180189
~~nocmd) # no command provided
181-
echo "provide a command: lock, update-snapshots, github-update-snapshots, update-java-archives, test"
190+
echo "provide a command: lock, update-snapshots, github-update-snapshots, update-java-archives, test, deb-versions"
182191
exit 1
183192
;;
184193
*) # unknown command

0 commit comments

Comments
 (0)