Skip to content

Commit 3098901

Browse files
committed
add option sts_endpoint
1 parent ad52506 commit 3098901

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {execFile} from 'child_process'
55
const main = async (): Promise<void> => {
66
const botID = core.getInput('bot-id', {required: true})
77
const expiresInMinutes = core.getInput('expires-in-minutes')
8+
const stsEndpoint = core.getInput('sts-endpoint')
89

910
const idToken = await core.getIDToken()
1011

@@ -15,7 +16,8 @@ const main = async (): Promise<void> => {
1516
'signin:bot',
1617
'--bot',
1718
botID,
18-
...(expiresInMinutes ? ['--expires-in-minutes', expiresInMinutes] : [])
19+
...(expiresInMinutes ? ['--expires-in-minutes', expiresInMinutes] : []),
20+
...(stsEndpoint ? ['--sts-endpoint', stsEndpoint] : [])
1921
]
2022

2123
const proc = execFile(command, args, error => {

0 commit comments

Comments
 (0)