Skip to content

Commit be6fb42

Browse files
committed
action stabilisation
1 parent 60a91d5 commit be6fb42

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

actions/docker/scan-docker-repo/action.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ runs:
245245
ACTION_PATH: ${{ github.action_path }}
246246
SUMMARIZE_DIR: ${{ inputs.summarize-dir }}
247247
run: |
248-
find "${SUMMARIZE_DIR}" -name 'report-*' -type f |
249-
while read -r report_file; do
250-
"${ACTION_PATH}/summarize.sh" "${report_file}" >> "${SUMMARIZE_DIR}/00-reports-summary.txt"
251-
done
248+
tmp_file="$(mktemp)"
249+
find "${SUMMARIZE_DIR}" -name 'report-*' -type f -exec cat '{}' \; > "${tmp_file}"
250+
251+
"${ACTION_PATH}/summarize.sh" "${tmp_file}" > "${SUMMARIZE_DIR}/00-reports-summary.txt"
252+
253+
rm "${tmp_file}"

0 commit comments

Comments
 (0)