Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74462

[ecs-publisher] Extract inline script block in de/eacg/ecs/publisher/PublisherAction/graph.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 48
      ----
      <script type="text/javascript">
                      document.addEventListener("DOMContentLoaded", function() {
                          var statistics = ${scan.getStatistics()};
                          createGraph('graph-components-${key}', [statistics.vulnerability.warnings, statistics.vulnerability.violations, statistics.components - statistics.vulnerability.warnings - statistics.vulnerability.violations]);
                          createGraph('graph-licenses-${key}', [statistics.legal.warnings, statistics.legal.violations, statistics.licenses - statistics.legal.warnings - statistics.legal.violations]);
                      });
                  </script>
      ----
      

      Solution

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

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: