mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 07:00:27 +00:00
Add warning for disabling checksum
This commit is contained in:
5
main.sh
5
main.sh
@@ -597,7 +597,10 @@ fi
|
||||
enable_checksum="${INPUT_CHECKSUM:-}"
|
||||
case "${enable_checksum}" in
|
||||
true) ;;
|
||||
false) enable_checksum='' ;;
|
||||
false)
|
||||
enable_checksum=''
|
||||
warn "checksums have been disabled by 'checksum' input option; this is strongly discouraged for security reasons"
|
||||
;;
|
||||
*) bail "'checksum' input option must be 'true' or 'false': '${enable_checksum}'" ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user