Skip to content

Commit

Permalink
some rollbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Aug 14, 2024
1 parent 95e0b1a commit 0ce84fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
- name: Checkout CredData
uses: actions/checkout@v4
with:
repository: babenek/CredData
ref: abspos
repository: Samsung/CredData

- name: Markup hashing
run: |
Expand Down Expand Up @@ -73,8 +72,7 @@ jobs:
- name: Checkout CredData
uses: actions/checkout@v4
with:
repository: babenek/CredData
ref: abspos
repository: Samsung/CredData

- name: Markup hashing
run: |
Expand Down Expand Up @@ -171,8 +169,7 @@ jobs:
- name: Checkout CredData
uses: actions/checkout@v4
with:
repository: babenek/CredData
ref: abspos
repository: Samsung/CredData

- name: Markup hashing
run: |
Expand Down Expand Up @@ -354,8 +351,7 @@ jobs:
- name: Checkout CredData
uses: actions/checkout@v4
with:
repository: babenek/CredData
ref: abspos
repository: Samsung/CredData

- name: Markup hashing
run: |
Expand Down
4 changes: 2 additions & 2 deletions tests/ml_model/test_ml_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def validate(_candidate: Candidate) -> Tuple[bool, float]:
decision, probability = validate(candidate)
self.assertAlmostEqual(0.9994515776634216, probability, delta=NEGLIGIBLE_ML_THRESHOLD)

candidate.line_data_list[0].path = "test.x3"
candidate.line_data_list[0].file_type = ".x3"
candidate.line_data_list[0].path = "test.zip"
candidate.line_data_list[0].file_type = ".zip"
decision, probability = validate(candidate)
self.assertAlmostEqual(0.9994281530380249, probability, delta=NEGLIGIBLE_ML_THRESHOLD)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def test_yaml_p(self) -> None:

def test_yaml_n(self) -> None:
# test to prove that no credentials are found without depth
content_provider: AbstractProvider = FilesProvider([SAMPLES_PATH / "ttt.oracle"])
content_provider: AbstractProvider = FilesProvider([SAMPLES_PATH / "binary.yaml"])
cred_sweeper = CredSweeper()
cred_sweeper.run(content_provider=content_provider)
found_credentials = cred_sweeper.credential_manager.get_credentials()
Expand Down

0 comments on commit 0ce84fc

Please sign in to comment.