Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use CSS for decoration, fixes CodeQL error with TagList #3261

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Dec 4, 2024

Also see #1803 (review) (you have to open this thing:)

Screenshot 2024-12-04 at 10 35 28

This should fix an over-zealous CodeQL linting security issue/error by using CSS (a super powerful, declarative and therefore pretty much bug free, "from The Outside" language) instead of Javascript.

I think this should probably be an almost global type of rule (I would like to delete TagList at some point), and I think it would be a good candidate for something similar to XLayout, probably called XTheme which we would primarily use at the root of our application.

Finally we won't know for sure if this fixes the issue without merging to master, but I think its a better approach even if it doesn't fix the issue.

Screenshot 2024-12-04 at 10 28 40

Copy link

netlify bot commented Dec 4, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit 6412646
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/67503a519f5c1a000871b96e
😎 Deploy Preview https://deploy-preview-3261--kuma-gui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johncowen johncowen changed the title fix: Use CSS for decoration, fixes CodeQL error fix: Use CSS for decoration, fixes CodeQL error with TagList Dec 4, 2024
@johncowen johncowen marked this pull request as ready for review December 4, 2024 10:38
@johncowen johncowen requested a review from a team as a code owner December 4, 2024 10:38
@johncowen johncowen requested review from schogges and removed request for a team December 4, 2024 10:38
Copy link
Contributor

@schogges schogges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@johncowen johncowen force-pushed the fix/over-zealous-linter branch from f4e71d7 to 6412646 Compare December 4, 2024 11:17
@johncowen
Copy link
Contributor Author

Sorry I wanted to push a little amend here after reading my own comment from way back when. Been trying to get internet so missed the approval 😅 . I'm sure the addition is fine but let me know if not, otherwise I'll leave this hanging for a little while and then go ahead and merge

@johncowen johncowen merged commit 6a814ae into kumahq:master Dec 4, 2024
16 checks passed
@johncowen
Copy link
Contributor Author

FYI this fixed the security alert, hopefully for good 🤞

Screenshot 2024-12-04 at 12 50 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants