File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 3939 name : Import keys
4040 shell : bash
4141 run : |2
42- for ghUser in $GitHubSigningUsers; do
42+ allowed_signers_file=.release-signers
43+ declare -a GitHubSigningUsers=()
44+ while read -r line; do
45+ case "${line:-#}" in
46+ \#*) ;;
47+ *) GitHubSigningUsers+=("$line") ;;
48+ esac
49+ done <<< "$(git cat-file -p "origin/HEAD:$allowed_signers_file")"
50+ typeset -p GitHubSigningUsers
51+ for ghUser in "${GitHubSigningUsers[@]}"; do
4352 echo "::debug::importing from GitHub any OpenPGP keys for user ${ghUser@Q}"
4453 curl -fSsL "https://github.com/$ghUser.gpg" | gpg --import || true
4554 done
Original file line number Diff line number Diff line change 1+ # These are the GitHub users who can sign a release tag
2+ philpennock
You can’t perform that action at this time.
0 commit comments