Support splitting of DB creation and query execution by edoardopirovano · Pull Request #602 · github/codeql-action (original) (raw)
I think using getRequiredInput is fine here because the input is defined as
skip-queries:
description: If this option is set, the CodeQL database will be built but no queries will be run on it. Thus, no results will be produced.
required: false
default: "false"
so if not given by the user then the actions runtime inserts the default value, so our code will always see a value present.
I did run into a problem during tests because then the value really will be missing and getRequiredInput will crash.