Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jun 30, 2024
1 parent dad4dcd commit 1ef1c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ outputs:
description: "0 if no source file has been updated, 1 if source files has been updated"
runs:
using: "docker"
image: "docker://ghcr.io/oxsecurity/megalinter:alpha" #TODO: remove before merge !
image: "docker://ghcr.io/oxsecurity/megalinter:alpha" #TODO: remove before merge !
args:
- "-v"
- "/var/run/docker.sock:/var/run/docker.sock:rw"
Expand Down
4 changes: 2 additions & 2 deletions megalinter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def get_git_context_info(request_id, path):
search_parent_directories=True,
)
repo_name = repo.working_tree_dir.split("/")[-1]
except Exception as e:
except Exception:
repo_name = "?"
if branch_name is None:
try:
Expand All @@ -363,7 +363,7 @@ def get_git_context_info(request_id, path):
repo_name_1 = repo.working_tree_dir.split("/")[-1]
branch = repo_name_1.active_branch
branch_name = branch.name
except Exception as e:
except Exception:
branch_name = "?"
# Job URL
job_url = config.get_first_var_set(
Expand Down

0 comments on commit 1ef1c0b

Please sign in to comment.