Skip to content

Commit

Permalink
fix for snyk
Browse files Browse the repository at this point in the history
  • Loading branch information
britt-mo committed Nov 8, 2024
1 parent 512fee7 commit ec1b580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/branch-name-validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -e

local_branch=$(git rev-parse --abbrev-ref HEAD)
local_branch=${1}
[ -z "${1}" ] && local_branch=$(git rev-parse --abbrev-ref HEAD)

valid_branch='^[a-z][a-z0-9-]*$'

Expand Down

0 comments on commit ec1b580

Please sign in to comment.