Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-17205 ci: Fix python bandit check (#16003) #16052

Merged
merged 1 commit into from
Mar 7, 2025
Merged
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
3 changes: 2 additions & 1 deletion src/tests/ftest/util/apricot/apricot/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
(C) Copyright 2020-2024 Intel Corporation.
(C) Copyright 2025 Hewlett Packard Enterprise Development LP

SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand Down Expand Up @@ -167,7 +168,7 @@ def setUp(self):
"ERROR: The env variable DAOS_TEST_RANDOM_SEED "
"does not define a valid integer: got='{}'".format(env_seed))
self.log.info("Test.random seed = %d", self.rand_seed)
self.random = random.Random(self.rand_seed)
self.random = random.Random(self.rand_seed) # nosec

def add_test_data(self, filename, data):
"""Add a file to the test variant specific data directory.
Expand Down