Get token from input
This commit is contained in:
parent
fc7ce84d45
commit
766e4df2a8
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -59,7 +59,7 @@ function main() {
|
||||
const api = client.default({
|
||||
baseUrl: gitea.context.apiUrl,
|
||||
headers: {
|
||||
//["Authorization"]: `token ${process.env.GITHUB_TOKEN}`
|
||||
["Authorization"]: `token ${core.getInput('github-token', { required: true })}`
|
||||
}
|
||||
});
|
||||
const { data, error } = yield api.GET('/repos/{owner}/{repo}', {
|
||||
|
@ -24,7 +24,7 @@ async function main() {
|
||||
const api = client.default<specification.paths>({
|
||||
baseUrl: gitea.context.apiUrl,
|
||||
headers: {
|
||||
["Authorization"]: `token ${process.env.GITHUB_TOKEN}`
|
||||
["Authorization"]: `token ${core.getInput('github-token', {required: true})}`
|
||||
}
|
||||
});
|
||||
const {data, error} = await api.GET('/repos/{owner}/{repo}', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user