Skip to content

Commit

Permalink
Update defender.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviAkshintala authored Sep 27, 2024
1 parent aa441fb commit a50a63b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/defender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@ jobs:
- name: Install Microsoft Defender ATP
run: sudo apt-get install -y mdatp

- name: Enable real-time protection
run: sudo mdatp config real-time-protection --value enabled

- name: Trigger activity for real-time protection
run: |
echo "This is a test file to trigger real-time protection" > testfile.txt
sudo mdatp scan file --path testfile.txt
- name: Check MDATP health
run: mdatp health

- name: Run MDATP Diagnostic
run: mdatp diagnostic real-time-protection-statistics --output json

0 comments on commit a50a63b

Please sign in to comment.