Skip to content

Actions loaded are missing hyphens #415

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

GetTuh
Copy link

@GetTuh GetTuh commented Aug 14, 2023

Since only way to inject malicious code in name/author is html tags, the full special character stripping is changed to replacing > and < with their corresponding ascii character codes.

This change required test adjustments.

@rajbos rajbos changed the title EISSWSCN-34439 Actions loaded are missing hyphens Actions loaded are missing hyphens Aug 28, 2023
@@ -45,6 +43,7 @@ export function parseYAML(
}
return {name, author, description, using}
}
const removeGreaterLessThan = (item:string) => item.replace(/\>/g,'&#62;').replace(/\</g,'&#60;')
Copy link
Collaborator

Choose a reason for hiding this comment

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

You are now bypassing the sanitize method completely, which I added for a reason :-D. Can we embed this code into the sanitize function and revert to calling that code again?

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.

4 participants