[checkmarx-ast-scanner] Extract inline script block in com/checkmarx/jenkins/CheckmarxScanResultsAction/index.jelly

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 470
      ----
      <script>
              window.addEventListener('load', function () {
              var totalVal = document.getElementById("total").textContent;
              var elements = document.getElementsByClassName("value");
              Array.prototype.forEach.call(elements, function (element) {
              if (element.style) {
              element.style.width = ((element.textContent / totalVal) * 100) + "%";
              }
              });
              }, false);
          </script>
      ----
      

      Solution

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks

            Assignee:
            Unassigned
            Reporter:
            Basil Crow
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: