Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
michaeltroger committed Mar 26, 2024
1 parent 1f074cb commit d0e863c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/security_test.yml
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ jobs:
- name: Check website safety
run: |
curl -d 'hidden=true' 'https://http-observatory.security.mozilla.org/api/v1/analyze?host=michaeltroger.com' > temp_testreport.txt
rm testreport.txt
echo "Test report generated via observatory.mozilla.org API" >> testreport.txt
cat temp_testreport.txt | grep -oP '(?<="grade":")[^"]*' | sed 's/^/Grade: /' >> testreport.txt
cat temp_testreport.txt | grep -oP '(?<="score":)\d+' | sed 's/^/Score: /' >> testreport.txt

0 comments on commit d0e863c

Please sign in to comment.