hackforla / website

Hack for LA's website
https://www.hackforla.org
GNU General Public License v2.0
323 stars 774 forks source link

ER: CodeQL did not raise alerts on each instance of "Potentially unsafe external link" #6485

Open roslynwythe opened 7 months ago

roslynwythe commented 7 months ago

Dependencies

The issue could be resolved with:

Emergent Requirement - Problem

Details

Regarding _includes/current_guides.html:

Issue you discovered this emergent requirement in

Date discovered

3/4/2024

Did you have to do something temporarily

Who was involved

@djbradleyii

What happens if this is not addressed

code security/quality issues may be missed

Resources

Recommended Action Items

Potential solutions [draft]

github-actions[bot] commented 7 months ago

Hi @roslynwythe.

Please don't forget to add the proper labels to this issue. Currently, the labels for the following are missing:

NOTE: Please ignore this comment if you do not have 'write' access to this directory.

To add a label, take a look at Github's documentation here.

Also, don't forget to remove the "missing labels" afterwards. To remove a label, the process is similar to adding a label, but you select a currently added label to remove it.

After the proper labels are added, the merge team will review the issue and add a "Ready for Prioritization" label once it is ready for prioritization.

Additional Resources:

github-actions[bot] commented 7 months ago

Hi @roslynwythe, thank you for taking up this issue! Hfla appreciates you :)

Do let fellow developers know about your:- i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?) ii. ETA: (When do you expect this issue to be completed?)

You're awesome!

P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)

elliot-d-kim commented 6 months ago

During my testing in #5234, the issues downstream of the top-most YAML or Liquid lines would not generate CodeQL alerts. As noted in that issue:

Remove only the empty YAML front-matter: CodeQL errors moved down the files to the next non-JS (i.e. Liquid) lines.

I.e., YAML/Liquid errors prevent CodeQL from scanning the remainder of the file for potential errors it would otherwise typically detect.

This may be the reason why issues such as this fail to generate CodeQL alerts.