Skip to content

Commit

Permalink
PS-106 Verify NextJS Image Domains
Browse files Browse the repository at this point in the history
  • Loading branch information
jmac-magic committed Aug 21, 2024
1 parent 5542d17 commit dbd8f4f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/nextjs_image_domain_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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
with:
file_extensions: '.js,.ts'
regex_pattern: "domains:\\s*\\[\\s*\\\"\\*\\\"\\s*\\]"

0 comments on commit dbd8f4f

Please sign in to comment.