Skip to content

Commit f070af2

Browse files
committed
DevSecOps test
1 parent 560b6c8 commit f070af2

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/devsecops-pipeline.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)