Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/build-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,6 @@ on:
pull_request:
branches: [master]
jobs:
# sast-scan:
# runs-on: ubuntu-latest
# # Skip any PR created by dependabot to avoid permission issues:
# if: (github.actor != 'dependabot[bot]')
# steps:
# - uses: actions/checkout@v5
# - uses: actions/setup-node@v4
# with:
# node-version: "22"
# - run: npm install -g snyk
# - run: snyk config set api=${{ secrets.SNYK_API_KEY }}
# - run: snyk code test src/main
malware-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Malware Scanner # https://github.com/dell/common-github-actions/blob/main/malware-scanner/README.md
uses: dell/common-github-actions/malware-scanner@main
with:
directories: .
options: -ri
build-and-test:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/scan-malware.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: scan-malware
on:
pull_request:
branches: [master]
jobs:
scan-malware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Malware Scanner # https://github.com/dell/common-github-actions/blob/main/malware-scanner/README.md
uses: dell/common-github-actions/malware-scanner@main
with:
directories: .
options: -ri
19 changes: 19 additions & 0 deletions .github/workflows/scan-semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: scan-semgrep
on:
pull_request: {}
workflow_dispatch: {}
merge_group:
types: [checks_requested]
jobs:
scan-semgrep:
name: semgrep/ci
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
# Skip any PR created by dependabot and any check triggered by merge group
if: (github.actor != 'dependabot[bot]') && (github.event != 'merge_group')
steps:
- uses: actions/checkout@v4
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ output.xml
.project
.settings
.DS_Store
.dccache
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ public class JunitXmlParser {
private Boolean hasFileNotFoundErrors = false;

protected TestSuite parseTestSuite(File filename) throws ParserConfigurationException, SAXException, IOException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
DocumentBuilder builder = dbf.newDocumentBuilder();
Document document = builder.parse(filename);
return transform(document.getFirstChild());
}
Expand Down