Skip to content

Commit

Permalink
Use defusedxml for xml parsing instead of etree
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
  • Loading branch information
AlvaroBrey committed Apr 27, 2022
1 parent 6eff01d commit 7073746
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/analysis.yml
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -50,4 +50,7 @@ fastlane/Fastfile
**/fastlane/test_output
/fastlane/vendor/
/.bundle/
/fastlane/.bundle/
/fastlane/.bundle

# python
**/__pycache__/
2 changes: 1 addition & 1 deletion scripts/analysis/spotbugsComparison.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import argparse
import xml.etree.ElementTree as ET
import defusedxml.ElementTree as ET
import spotbugsSummary


Expand Down
2 changes: 1 addition & 1 deletion scripts/analysis/spotbugsSummary.py
@@ -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):
Expand Down

0 comments on commit 7073746

Please sign in to comment.