From 9b6d1f84bde660b0f784003009b1f0aa4663cdeb Mon Sep 17 00:00:00 2001 From: maxweng-sentry Date: Tue, 11 Nov 2025 14:37:52 -0800 Subject: [PATCH] check gpg only when skip-validation = false (#1894) --- action.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 93adcd2..fbb6e73 100644 --- a/action.yml +++ b/action.yml @@ -180,13 +180,20 @@ runs: run: | missing_deps="" - # Check for required commands - for cmd in bash git curl gpg; do + # Check for always-required commands + for cmd in bash git curl; do if ! command -v "$cmd" >/dev/null 2>&1; then missing_deps="$missing_deps $cmd" fi done + # Check for gpg only if validation is not being skipped + if [ "${{ inputs.skip_validation }}" != "true" ]; then + if ! command -v gpg >/dev/null 2>&1; then + missing_deps="$missing_deps gpg" + fi + fi + # Report missing required dependencies if [ -n "$missing_deps" ]; then echo "Error: The following required dependencies are missing:$missing_deps"