PS-106 Verify NextJS Image Domains #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure we do not allow all domains for image optimization, | ||
# which will lead to an XSS security vulnerability. | ||
name: NextJS Image Domain Check | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
jobs: | ||
call_nextjs_image_regex: | ||
uses: magiclabs/gha-reusable-workflows/.github/workflows/forbidden_string_check.yml@master | ||
Check failure on line 12 in .github/workflows/nextjs_image_domain_check.yml
|
||
with: | ||
file_extensions: '.js,.ts' | ||
regex_pattern: "domains:\\s*\\[\\s*\\\"\\*\\\"\\s*\\]" |