-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from rusakovichma/multiple-threat-modeling-file…
…s-support Multiple threat modeling files support
- Loading branch information
Showing
13 changed files
with
329 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
# Release Notes | ||
# Release Notes | ||
|
||
## [Version 1.2.3](https://github.com/jeremylong/DependencyCheck/releases/tag/v7.1.1) (2022-07-03) | ||
|
||
**Changes** | ||
|
||
- Bug fixes. | ||
- Multiple Threat Modeling files support and files scan ([see #1](https://github.com/rusakovichma/TicTaaC/issues/1)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/github/rusakovichma/tictaac/provider/reader/MitigationsFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.rusakovichma.tictaac.provider.reader; | ||
|
||
import com.github.rusakovichma.tictaac.util.FileUtil; | ||
|
||
import java.io.File; | ||
import java.io.FileFilter; | ||
|
||
public class MitigationsFilter implements FileFilter { | ||
|
||
@Override | ||
public boolean accept(File mitigationsFile) { | ||
if (!mitigationsFile.getName().toLowerCase().endsWith(".yml")) { | ||
return false; | ||
} | ||
return FileUtil.findString(mitigationsFile, "mitigated:"); | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/github/rusakovichma/tictaac/provider/reader/ThreatModelFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.rusakovichma.tictaac.provider.reader; | ||
|
||
import com.github.rusakovichma.tictaac.util.FileUtil; | ||
|
||
import java.io.File; | ||
import java.io.FileFilter; | ||
|
||
public class ThreatModelFilter implements FileFilter { | ||
|
||
@Override | ||
public boolean accept(File modelFile) { | ||
if (!modelFile.getName().toLowerCase().endsWith(".yml")) { | ||
return false; | ||
} | ||
return FileUtil.findString(modelFile, "elements:") | ||
&& FileUtil.findString(modelFile, "data-flows:"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.