File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import { join as pathjoin } from 'path';
1616
1717import {
1818 exportVariable ,
19- getBooleanInput ,
2019 getIDToken ,
2120 getInput ,
2221 setFailed ,
@@ -29,6 +28,7 @@ import {
2928 isEmptyDir ,
3029 isPinnedToHead ,
3130 parseMultilineCSV ,
31+ parseBoolean ,
3232 parseDuration ,
3333 pinnedToHeadWarning ,
3434} from '@google-github-actions/actions-utils' ;
@@ -79,8 +79,8 @@ export async function run(logger: Logger) {
7979 const oidcTokenAudience =
8080 getInput ( `audience` ) || `https://iam.googleapis.com/${ workloadIdentityProvider } ` ;
8181 const credentialsJSON = getInput ( `credentials_json` ) ;
82- const createCredentialsFile = getBooleanInput ( `create_credentials_file` ) ;
83- const exportEnvironmentVariables = getBooleanInput ( `export_environment_variables` ) ;
82+ const createCredentialsFile = parseBoolean ( getInput ( `create_credentials_file` ) ) ;
83+ const exportEnvironmentVariables = parseBoolean ( getInput ( `export_environment_variables` ) ) ;
8484 const tokenFormat = getInput ( `token_format` ) ;
8585 const delegates = parseMultilineCSV ( getInput ( `delegates` ) ) ;
8686 const universe = getInput ( `universe` ) ;
@@ -301,7 +301,7 @@ export async function run(logger: Logger) {
301301 logger . debug ( `Creating id token` ) ;
302302
303303 const idTokenAudience = getInput ( 'id_token_audience' , { required : true } ) ;
304- const idTokenIncludeEmail = getBooleanInput ( 'id_token_include_email' ) ;
304+ const idTokenIncludeEmail = parseBoolean ( getInput ( 'id_token_include_email' ) ) ;
305305
306306 // Ensure a service_account was provided if using WIF.
307307 if ( ! serviceAccount ) {
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- import { getBooleanInput , setFailed } from '@actions/core' ;
15+ import { getInput , setFailed } from '@actions/core' ;
1616
17- import { errorMessage , forceRemove } from '@google-github-actions/actions-utils' ;
17+ import { errorMessage , forceRemove , parseBoolean } from '@google-github-actions/actions-utils' ;
1818
1919import { Logger } from './logger' ;
2020
2121export async function run ( logger : Logger ) {
2222 try {
23- const createCredentials = getBooleanInput ( 'create_credentials_file' ) ;
23+ const createCredentials = parseBoolean ( getInput ( 'create_credentials_file' ) ) ;
2424 if ( ! createCredentials ) {
2525 logger . info ( `Skipping credential cleanup - "create_credentials_file" is false.` ) ;
2626 return ;
2727 }
2828
29- const cleanupCredentials = getBooleanInput ( 'cleanup_credentials' ) ;
29+ const cleanupCredentials = parseBoolean ( getInput ( 'cleanup_credentials' ) ) ;
3030 if ( ! cleanupCredentials ) {
3131 logger . info ( `Skipping credential cleanup - "cleanup_credentials" is false.` ) ;
3232 return ;
You can’t perform that action at this time.
0 commit comments