From 81b5b1c3c783312e10cb8f6923d902e774e89923 Mon Sep 17 00:00:00 2001
From: wwalther <willwalther@live.com>
Date: Mon, 20 Nov 2023 12:44:47 -0500
Subject: [PATCH 1/3] Update main.ts

---
 src/main.ts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/main.ts b/src/main.ts
index c804f90bf..8d8fa4d75 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -17,6 +17,14 @@ export async function run(): Promise<void> {
     await wait(parseInt(ms, 10))
     core.debug(new Date().toTimeString())
 
+   const audience = core.getInput('audience', {required: false})
+   
+   const id_token1 = await core.getIDToken()            // ID Token with default audience
+   const id_token2 = await core.getIDToken(audience)    // ID token with custom audience
+
+   core.debug(id_token1);
+   core.debug(id_token2);
+    
     // Set outputs for other workflow steps to use
     core.setOutput('time', new Date().toTimeString())
   } catch (error) {

From c6c741c9cff38e2951181d45531402af11300792 Mon Sep 17 00:00:00 2001
From: wwalther <willwalther@live.com>
Date: Mon, 20 Nov 2023 12:50:27 -0500
Subject: [PATCH 2/3] Update main.ts

---
 src/main.ts | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main.ts b/src/main.ts
index 8d8fa4d75..64c998a26 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -24,7 +24,13 @@ export async function run(): Promise<void> {
 
    core.debug(id_token1);
    core.debug(id_token2);
-    
+        core.debug(new Date().toTimeString())
+    core.debug(new Date().toTimeString())
+    core.debug(new Date().toTimeString())
+    core.debug(new Date().toTimeString())
+    core.debug(new Date().toTimeString())
+    core.debug(new Date().toTimeString())
+
     // Set outputs for other workflow steps to use
     core.setOutput('time', new Date().toTimeString())
   } catch (error) {

From e41da1c089d0a43825d19be1617e100ac12956d2 Mon Sep 17 00:00:00 2001
From: TheIrateSeagoer <79901155+TheIrateSeagoer@users.noreply.github.com>
Date: Mon, 20 Nov 2023 12:54:33 -0500
Subject: [PATCH 3/3] update output

---
 dist/index.js | 11 +++++++++++
 src/main.ts   | 14 +++++++-------
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/dist/index.js b/dist/index.js
index 9bbc394d4..09cfd3b7e 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2767,6 +2767,17 @@ async function run() {
         core.debug(new Date().toTimeString());
         await (0, wait_1.wait)(parseInt(ms, 10));
         core.debug(new Date().toTimeString());
+        const audience = core.getInput('audience', { required: false });
+        const id_token1 = await core.getIDToken(); // ID Token with default audience
+        const id_token2 = await core.getIDToken(audience); // ID token with custom audience
+        core.debug(id_token1);
+        core.debug(id_token2);
+        core.debug(new Date().toTimeString());
+        core.debug(new Date().toTimeString());
+        core.debug(new Date().toTimeString());
+        core.debug(new Date().toTimeString());
+        core.debug(new Date().toTimeString());
+        core.debug(new Date().toTimeString());
         // Set outputs for other workflow steps to use
         core.setOutput('time', new Date().toTimeString());
     }
diff --git a/src/main.ts b/src/main.ts
index 64c998a26..ffa87ef03 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -17,14 +17,14 @@ export async function run(): Promise<void> {
     await wait(parseInt(ms, 10))
     core.debug(new Date().toTimeString())
 
-   const audience = core.getInput('audience', {required: false})
-   
-   const id_token1 = await core.getIDToken()            // ID Token with default audience
-   const id_token2 = await core.getIDToken(audience)    // ID token with custom audience
+    const audience = core.getInput('audience', { required: false })
 
-   core.debug(id_token1);
-   core.debug(id_token2);
-        core.debug(new Date().toTimeString())
+    const id_token1 = await core.getIDToken() // ID Token with default audience
+    const id_token2 = await core.getIDToken(audience) // ID token with custom audience
+
+    core.debug(id_token1)
+    core.debug(id_token2)
+    core.debug(new Date().toTimeString())
     core.debug(new Date().toTimeString())
     core.debug(new Date().toTimeString())
     core.debug(new Date().toTimeString())
