Skip to content

Commit

Permalink
Secure Source of Randomness (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
  • Loading branch information
pixeebot[bot] authored Mar 12, 2024
1 parent 60eb8b6 commit 2a9f573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/gitlab/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
import gitlab
import random
import sys
import json
import whatthepatch
import base64
import secrets


# GitLab settings
Expand All @@ -13,7 +13,7 @@
project_id = os.environ.get("CI_MERGE_REQUEST_PROJECT_ID")
source_branch = os.environ.get("CI_MERGE_REQUEST_SOURCE_BRANCH_NAME")
new_branch_name = "pixee_" + str(
random.randint(0, 1000)
secrets.SystemRandom().randint(0, 1000)
) # Replace with the desired new branch name
merge_id = os.environ.get("CI_MERGE_REQUEST_IID")

Expand Down

0 comments on commit 2a9f573

Please sign in to comment.