diff --git a/.github/workflows/codeql-full.yml b/.github/workflows/codeql-full.yml index 8b55b4d5..5b80ac28 100644 --- a/.github/workflows/codeql-full.yml +++ b/.github/workflows/codeql-full.yml @@ -139,16 +139,12 @@ jobs: html_count=0 while IFS= read -r -d '' sarif_file; do - relative_path="${sarif_file#codeql-sarif/}" - html_file="$html_dir/${relative_path%.sarif}.html" - mkdir -p "$(dirname "$html_file")" - - sarif html "$sarif_file" --output "$html_file" + sarif html "$sarif_file" --output "$html_dir" html_count=$((html_count + 1)) - printf '%s -> %s\n' "$sarif_file" "$html_file" + printf '%s -> %s/\n' "$sarif_file" "$html_dir" done < <(find codeql-sarif -type f -name '*.sarif' -print0) - index_file="$html_dir/index.html" + index_file="$html_dir/reports.html" { printf '\n' printf '\n' @@ -159,7 +155,7 @@ jobs: while IFS= read -r -d '' html_file; do link="${html_file#$html_dir/}" printf '