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: storybook having an image #49

Merged
merged 13 commits into from
May 26, 2024
Prev Previous commit
Next Next commit
exit 0
  • Loading branch information
LelouchFR committed May 26, 2024
commit 88ede23fcb4fa14a0796ee942c42949026344b3c
2 changes: 2 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
has_img=$(grep -l "data:image/png;base64" ./assets/*.svg)
if [ -z "$has_img" ]; then
echo "no image found in svg"
exit 0
else
echo "image found in svg, please reformat you svg to have no image"
echo "$has_img"
Expand All @@ -35,6 +36,7 @@ jobs:
has_js_tag=$(grep -l "script" ./assets/*.svg)
if [[ -z "$has_js_tag" ]]; then
echo "no xss attack found"
exit 0
else
echo "xss attack detected in following file:"
echo "$has_js_tag"
Expand Down
Loading