From d996c2dfb4b1cb115e0a2cd117eebd8a4ab41cad Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:00:42 -0400 Subject: [PATCH] chore: use sha256 in hashing (#3012) Fix: https://github.com/googleapis/sdk-platform-java/security/code-scanning/1 --- library_generation/model/library_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library_generation/model/library_config.py b/library_generation/model/library_config.py index 52e15891b6..4d01698671 100644 --- a/library_generation/model/library_config.py +++ b/library_generation/model/library_config.py @@ -12,7 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from hashlib import sha1 +from hashlib import sha256 from typing import Optional from library_generation.model.gapic_config import GapicConfig @@ -117,7 +117,7 @@ def __eq__(self, other): ) def __hash__(self): - m = sha1() + m = sha256() m.update( str( [