diff --git a/src/bitwarden_workflow_linter/actions.py b/src/bitwarden_workflow_linter/actions.py index 9486820..2dbb77c 100644 --- a/src/bitwarden_workflow_linter/actions.py +++ b/src/bitwarden_workflow_linter/actions.py @@ -144,9 +144,7 @@ def get_latest_version(self, action: Action) -> Action | None: if response is None or response.status != 200: return None - if json.loads(response.data)["object"]["type"] == "commit": - sha = json.loads(response.data)["object"]["sha"] - else: + if json.loads(response.data)["object"]["type"] != "commit": url = json.loads(response.data)["object"]["url"] # Follow the URL and get the commit sha for tags response = self.get_github_api_response(url, action.name)