From 50d3da6dc4fdf6e30e56f7f33cdc6a64bf39ad9f Mon Sep 17 00:00:00 2001 From: Pierre Jeanjacquot <26487010+PierreJeanjacquot@users.noreply.github.com> Date: Tue, 29 Sep 2026 14:31:21 +0000 Subject: [PATCH] refactor(docker-build): group GITHUB_OUTPUT redirects Write the Trivy and Hadolint multiline report outputs with a single grouped redirect instead of one redirect per line (shellcheck SC2129). --- .github/workflows/docker-build.yml | 16 ++++++++++------ docker-build/workflow-sha256 | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 79c42ca..46f3613 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -170,9 +170,11 @@ jobs: id: read_trivy if: github.event_name == 'pull_request' && inputs.security-scan && inputs.security-report == 'comment' run: | - echo "report<> "$GITHUB_OUTPUT" - cat trivy.txt >> "$GITHUB_OUTPUT" - echo "EOF" >> "$GITHUB_OUTPUT" + { + echo "report<> "$GITHUB_OUTPUT" - name: Find existing Trivy comment if: github.event_name == 'pull_request' && inputs.security-scan && inputs.security-report == 'comment' @@ -220,9 +222,11 @@ jobs: id: read_hadolint if: ${{ inputs.hadolint }} run: | - echo "report<> "$GITHUB_OUTPUT" - cat hadolint.txt >> "$GITHUB_OUTPUT" - echo "EOF" >> "$GITHUB_OUTPUT" + { + echo "report<> "$GITHUB_OUTPUT" cat hadolint.txt - name: Find existing Hadolint comment diff --git a/docker-build/workflow-sha256 b/docker-build/workflow-sha256 index e87f754..018b1a2 100644 --- a/docker-build/workflow-sha256 +++ b/docker-build/workflow-sha256 @@ -1 +1 @@ -b90cf70ccbf64901db2b79cf2d320010efb34e714ff2e270d03ff2d181fa3845 +45cbab194c7027c476e38ea6b843d97121a99785a1406ae8584f10d150f538c3