File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -334,14 +334,12 @@ jobs:
334334 cp ./angular-xss/zap-rules.tsv ./
335335 else
336336 echo "ZAP rules file not found, creating a basic one"
337- cat > zap-rules.tsv << 'EOL'
338- 10016 IGNORE http://localhost:4200 (IGNORE : A technology has been identified)
339- 10020 IGNORE http://localhost:4200 (IGNORE : X-Frame-Options Header Not Set)
340- 10021 IGNORE http://localhost:4200 (IGNORE : X-Content-Type-Options Header Missing)
341- 10038 IGNORE http://localhost:4200 (IGNORE : Content Security Policy (CSP) Header Not Set)
342- 10049 IGNORE http://localhost:4200 (IGNORE : Non-Storable Content)
343- 40012 FAIL http://localhost:4200 (FAIL : Cross Site Scripting (Reflected))
344- EOL
337+ echo '10016 IGNORE http://localhost:4200 (IGNORE: A technology has been identified)' > zap-rules.tsv
338+ echo '10020 IGNORE http://localhost:4200 (IGNORE: X-Frame-Options Header Not Set)' >> zap-rules.tsv
339+ echo '10021 IGNORE http://localhost:4200 (IGNORE: X-Content-Type-Options Header Missing)' >> zap-rules.tsv
340+ echo '10038 IGNORE http://localhost:4200 (IGNORE: Content Security Policy (CSP) Header Not Set)' >> zap-rules.tsv
341+ echo '10049 IGNORE http://localhost:4200 (IGNORE: Non-Storable Content)' >> zap-rules.tsv
342+ echo '40012 FAIL http://localhost:4200 (FAIL: Cross Site Scripting (Reflected))' >> zap-rules.tsv
345343 fi
346344
347345 # Verify the rules file exists and show content
You can’t perform that action at this time.
0 commit comments