diff --git a/.github/workflows/verify-git-clone-windows.yml b/.github/workflows/verify-git-clone-windows.yml new file mode 100644 index 000000000..0fea3804e --- /dev/null +++ b/.github/workflows/verify-git-clone-windows.yml @@ -0,0 +1,20 @@ +name: Verify Git Clone on Windows + +on: + workflow_dispatch: + +jobs: + verify-git-clone: + runs-on: windows-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Verify Git Clone + # if the architecture is AMD64 use cmd prompt or else use powershell to display an empty line is successful. + run: | + if "%PROCESSOR_ARCHITECTURE%"=="AMD64" { + echo. + } else { + Write-Host "" + } \ No newline at end of file diff --git a/vulnerabilities/tests/test_data/redhat/RHSA-2022:1439.json b/vulnerabilities/tests/test_data/redhat/RHSA_openjdk11_update.json similarity index 100% rename from vulnerabilities/tests/test_data/redhat/RHSA-2022:1439.json rename to vulnerabilities/tests/test_data/redhat/RHSA_openjdk11_update.json diff --git a/vulnerabilities/tests/test_data/redhat/RHSA-2022:1437.json b/vulnerabilities/tests/test_data/redhat/RHSA_openjdk17_update.json similarity index 100% rename from vulnerabilities/tests/test_data/redhat/RHSA-2022:1437.json rename to vulnerabilities/tests/test_data/redhat/RHSA_openjdk17_update.json diff --git a/vulnerabilities/tests/test_redhat_importer.py b/vulnerabilities/tests/test_redhat_importer.py index 582903fdd..7a16e49c1 100644 --- a/vulnerabilities/tests/test_redhat_importer.py +++ b/vulnerabilities/tests/test_redhat_importer.py @@ -42,8 +42,8 @@ def test_redhat_importer(get_data_from_url, fetcher): fetcher.return_value = [json.load(f)] bugzilla_2075788_response_file = os.path.join(TEST_DATA, "bugzilla-2075788.json") bugzilla_2077736_response_file = os.path.join(TEST_DATA, "bugzilla-2077736.json") - rhsa_1437 = os.path.join(TEST_DATA, "RHSA-2022:1437.json") - rhsa_1439 = os.path.join(TEST_DATA, "RHSA-2022:1439.json") + rhsa_1437 = os.path.join(TEST_DATA, "RHSA_openjdk17_update.json") + rhsa_1439 = os.path.join(TEST_DATA, "RHSA_openjdk11_update.json") get_data_from_url.side_effect = [ json.load(open(bugzilla_2075788_response_file)), json.load(open(bugzilla_2077736_response_file)),