Skip to content

ValueError: substring not found #2

Open
@christophetd

Description

FYI I'm getting the following error:

Evaluating  github_action_mirror_repos_role , arn:aws:iam::xxxx:role/github_action_mirror_repos_role
Traceback (most recent call last):
  File "workspace/github-oidc-checker/aws-oidc-tester.py", line 96, in <module>
    if "StringLike" in condition and "token.actions.githubusercontent.com:sub" in condition["StringLike"] and check_vuln_sub_pattern(condition["StringLike"]["token.actions.githubusercontent.com:sub"]):
  File "workspace/github-oidc-checker/aws-oidc-tester.py", line 9, in check_vuln_sub_pattern
    if pattern.index("*") > 0 and pattern.index("*") < pattern.index("/"):
ValueError: substring not found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions