Skip to content

Commit

Permalink
Fix no Gopass support
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 18, 2024
1 parent 5c097a0 commit 3093223
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tag_publish/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ def _handle_docker_publish(
if dry_run:
sys.exit(0)

has_gopass = subprocess.run(["gopass", "--version"]).returncode == 0 # nosec # pylint: disable=subprocess-run-check
try:
has_gopass = subprocess.run(["gopass", "--version"]).returncode == 0 # nosec # pylint: disable=subprocess-run-check
except FileNotFoundError:
has_gopass = False
if "SNYK_TOKEN" in os.environ or has_gopass:
snyk_exec, env = tag_publish.snyk_exec()
for image in images_snyk:
Expand Down

0 comments on commit 3093223

Please sign in to comment.