Skip to content

Commit 143d2b9

Browse files
committed
github actions: show bundled gems
Show multi-versioned gems in (filter) and full list in (details) section. e.g. docker run --rm fluent/fluentd:v1.19.1-debian-amd64 gem list | grep "," json (2.13.2, default: 2.9.1) rexml (3.4.4, 3.4.0) Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 3091085 commit 143d2b9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/scan-images.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
jobs:
14+
gem:
15+
name: Show bundled gems
16+
strategy:
17+
fail-fast: false
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v6
21+
- name: Show bundled gems in Fluentd image
22+
run: |
23+
# v1.19.1-debian-amd64
24+
IMAGE=$(make echo-all-images | cut -d' ' -f1|cut -d',' -f3)
25+
echo "# Show bundled gems in Fluentd image (filter)" >> $GITHUB_STEP_SUMMARY
26+
docker run --rm fluent/fluentd:$IMAGE gem list | grep "," >> $GITHUB_STEP_SUMMARY
27+
echo "# Show all bundled gems in Fluentd image (details)" >> $GITHUB_STEP_SUMMARY
28+
docker run --rm fluent/fluentd:$IMAGE gem list >> $GITHUB_STEP_SUMMARY
1429
fluentd:
1530
name: Scan Fluentd image with grype
1631
strategy:

0 commit comments

Comments
 (0)