Use defusedxml for xml parsing instead of etree

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2022-04-27 11:03:59 +02:00
parent 6eff01d735
commit 7073746309
No known key found for this signature in database
GPG key ID: 2585783189A62105
4 changed files with 9 additions and 3 deletions

View file

@ -40,6 +40,9 @@ jobs:
with:
distribution: "temurin"
java-version: 11
- name: Install dependencies
run: |
python3 -m pip install defusedxml
- name: Run analysis wrapper
run: |
mkdir -p $HOME/.gradle

5
.gitignore vendored
View file

@ -50,4 +50,7 @@ fastlane/Fastfile
**/fastlane/test_output
/fastlane/vendor/
/.bundle/
/fastlane/.bundle/
/fastlane/.bundle
# python
**/__pycache__/

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python3
import argparse
import xml.etree.ElementTree as ET
import defusedxml.ElementTree as ET
import spotbugsSummary

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python3
import argparse
import xml.etree.ElementTree as ET
import defusedxml.ElementTree as ET
def get_counts(tree):