Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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.
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.

## Reporting a Vulnerability

Expand Down
11 changes: 10 additions & 1 deletion knife
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ function cmd_test () {
bazel test --test_timeout=900 //... $arch_specific_targets
}

function cmd_deb_versions () {
echo "🔧 Printing .deb Versions (bookworm) from private/repos/deb/bookworm*.lock.json"
echo ""

jq -n '[inputs.packages[]] | group_by(.arch) | map({(.[0].arch): map({package: .name, version: .version})})' private/repos/deb/bookworm*.lock.json
}

case "${1:-"~~nocmd"}" in
lock)
Expand All @@ -177,8 +183,11 @@ test)
update-java-archives)
cmd_update_java_archives
;;
deb-versions)
cmd_deb_versions
;;
~~nocmd) # no command provided
echo "provide a command: lock, update-snapshots, github-update-snapshots, update-java-archives, test"
echo "provide a command: lock, update-snapshots, github-update-snapshots, update-java-archives, test, deb-versions"
exit 1
;;
*) # unknown command
Expand Down
Loading