Skip to content

Commit

Permalink
fix(general): address python 3.12 SyntaxWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Oct 28, 2023
1 parent a9807ec commit 1950691
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
10 changes: 5 additions & 5 deletions checkov/circleci_pipelines/common/shell_injection_list.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# flake8: noqa
terms = [
"\$*CIRCLE_PR_REPONAME*",
"\$*CIRCLE_PR_USERNAME*",
"\$*CIRCLE_PULL_REQUESTS*",
"\$*CIRCLE_TAG*",
"\$*CIRCLE_BRANCH*"
r"\$*CIRCLE_PR_REPONAME*",
r"\$*CIRCLE_PR_USERNAME*",
r"\$*CIRCLE_PULL_REQUESTS*",
r"\$*CIRCLE_TAG*",
r"\$*CIRCLE_BRANCH*"
]
34 changes: 17 additions & 17 deletions checkov/github_actions/common/shell_injection_list.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# flake8: noqa
terms = [
"\${{[ ]*github.event.issue.title[ ]*}}",
"\${{[ ]*github.event.issue.body[ ]*}}",
"\${{[ ]*github.event.pull_request.title[ ]*}}",
"\${{[ ]*github.event.pull_request.body[ ]*}}",
"\${{[ ]*github.event.comment.body[ ]*}}",
"\${{[ ]*github.event.review.body[ ]*}}",
"\${{[ ]*github.event.review_comment.body[ ]*}}",
"\${{[ ]*github.event.pages.*.page_name[ ]*}}",
"\${{[ ]*github.event.head_commit.message[ ]*}}",
"\${{[ ]*github.event.head_commit.author.email[ ]*}}",
"\${{[ ]*github.event.head_commit.author.name[ ]*}}",
"\${{[ ]*github.event.commits.*.author.email[ ]*}}",
"\${{[ ]*github.event.commits.*.author.name[ ]*}}",
"\${{[ ]*github.event.pull_request.head.ref[ ]*}}",
"\${{[ ]*github.event.pull_request.head.label[ ]*}}",
"\${{[ ]*github.event.pull_request.head.repo.default_branch[ ]*}}",
"\${{[ ]*github.head_ref[ ]*}}"
r"\${{[ ]*github.event.issue.title[ ]*}}",
r"\${{[ ]*github.event.issue.body[ ]*}}",
r"\${{[ ]*github.event.pull_request.title[ ]*}}",
r"\${{[ ]*github.event.pull_request.body[ ]*}}",
r"\${{[ ]*github.event.comment.body[ ]*}}",
r"\${{[ ]*github.event.review.body[ ]*}}",
r"\${{[ ]*github.event.review_comment.body[ ]*}}",
r"\${{[ ]*github.event.pages.*.page_name[ ]*}}",
r"\${{[ ]*github.event.head_commit.message[ ]*}}",
r"\${{[ ]*github.event.head_commit.author.email[ ]*}}",
r"\${{[ ]*github.event.head_commit.author.name[ ]*}}",
r"\${{[ ]*github.event.commits.*.author.email[ ]*}}",
r"\${{[ ]*github.event.commits.*.author.name[ ]*}}",
r"\${{[ ]*github.event.pull_request.head.ref[ ]*}}",
r"\${{[ ]*github.event.pull_request.head.label[ ]*}}",
r"\${{[ ]*github.event.pull_request.head.repo.default_branch[ ]*}}",
r"\${{[ ]*github.head_ref[ ]*}}"
]

0 comments on commit 1950691

Please sign in to comment.