Skip to content

Fix code scanning alert - Inclusion of functionality from an untrusted source #1240

@CarsonDavis

Description

@CarsonDavis

Overview

There are several alerts being thrown for js files that are imported but unverified. For example: https://github.com/NASA-IMPACT/COSMOS/security/code-scanning/41.

Deliverable

Look through all the examples raised in https://github.com/NASA-IMPACT/COSMOS/pull/1213/checks?check_run_id=37794953224, and fix each one of them with the following pattern:

<html>
    <head>
        <title>jQuery demo</title>
        <script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
    </head>
    <body>
        ...
    </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions