prysmaticlabs / prysm

Variables must be defined before use SH-2154
Bug risk
Critical
3 months ago3 years old
git_branch is referenced but not assigned
 6commit_sha=$(git rev-parse HEAD)
 7echo "COMMIT_SHA $commit_sha"
 8
 9echo "GIT_BRANCH $git_branch"10
11git_tree_status=$(git diff-index --quiet HEAD -- && echo 'Clean' || echo 'Modified')
12echo "GIT_TREE_STATUS $git_tree_status"
filename is referenced but not assigned
62echo "Uploading asset... "
63
64# Construct url
65GH_ASSET="https://uploads.github.com/repos/$owner/$repo/releases/$id/assets?name=$(basename "$filename")"66
67echo "$GH_ASSET"
68
github_api_token is referenced but not assigned
38GH_API="https://api.github.com"
39GH_REPO="$GH_API/repos/$owner/$repo"
40GH_TAGS="$GH_REPO/releases/tags/$tag"
41AUTH="Authorization: token $github_api_token"42# skipcq: SH-2034
43export WGET_ARGS="--content-disposition --auth-no-challenge --no-cookie"
44# skipcq: SH-2034
tag is referenced but not assigned
37# Define variables.
38GH_API="https://api.github.com"
39GH_REPO="$GH_API/repos/$owner/$repo"
40GH_TAGS="$GH_REPO/releases/tags/$tag"41AUTH="Authorization: token $github_api_token"
42# skipcq: SH-2034
43export WGET_ARGS="--content-disposition --auth-no-challenge --no-cookie"
owner is referenced but not assigned
36
37# Define variables.
38GH_API="https://api.github.com"
39GH_REPO="$GH_API/repos/$owner/$repo"40GH_TAGS="$GH_REPO/releases/tags/$tag"
41AUTH="Authorization: token $github_api_token"
42# skipcq: SH-2034