[checkmarx-ast-scanner] Extract inline script block and event handler in com/checkmarx/jenkins/CheckmarxScanBuilder/config.jelly

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

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 24
      ----
      <script>
              function toggleGlobalArguments(link) {
                  let textArea = link.nextElementSibling
      
                  if (textArea.type !== "textarea") {
                      throw "Element is not textarea!"
                  }
      
                  let hidden = textArea.style.display === "none"
      
                  textArea.style.display = hidden ? "" : "none"
                  link.innerText = (hidden ? "Hide" : "Show") + " global arguments"
              }
          </script>
      ----
      
      == Inline Event Handler
      Line: 120
      ----
      <a href="#" onclick="toggleGlobalArguments(this); return false;">
      ----
      

      Solutions

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

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

              Created:
              Updated:
              Archived: