Skip to content

Instantly share code, notes, and snippets.

@Alex-Welsh
Alex-Welsh / update-action-sha.sh
Last active April 1, 2026 09:26
Scan repo for actions, pins to latest commit
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# 1. Validate Dependencies
if ! command -v gh &> /dev/null; then
echo "Error: GitHub CLI (gh) is not installed."
exit 1
fi